`fastn` supports `import`ing one document from another, and the imported
documents act as a namespace.
All `kernel` components are defined in a `virtual document`, named `ftd`, and
every `.ftd` file implicitly imports ftd:
hello world using `ftd.text`
-- import: ftd
-- ftd.text: hello world
The `import` line is not needed as it's automatically imported. This line
defines namespace `ftd`, so all `kernel` components are referred as `ftd.text`
and so on.
We are then using a component named [`ftd.text`](ftd/text/) to render
the text "hello world" in the UI.
List of `kernel` components
- [`ftd.column`](ftd/column/)
- [`ftd.row`](ftd/row/)
- [`ftd.text`](ftd/text/)
- [`ftd.image`](ftd/image/)
- [`ftd.iframe`](ftd/iframe/)
- [`ftd.integer`](ftd/integer/)
- [`ftd.decimal`](ftd/decimal/)
- [`ftd.boolean`](ftd/boolean/)
- [`ftd.code`](ftd/code/)