fastn
comes with a few kernel
components, these components are the building
blocks for building all other components.fastn
supports import
ing one document from another, and the imported
documents act as a namespace.kernel
components are defined in a virtual document
, named ftd
, and
every .ftd
file implicitly imports ftd: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.
ftd.text
to render
the text "hello world" in the UI.kernel
components