fastn
packagefastn
is also a ftd
package manager. A package contains all related and
necessary files. fastn
manages the packages and modules for ftd
and
consists of command line tool fastn
.
fastn
. Refer to the install
fastn
page to learn how to install fastn
.fastn
package is to use the command line tool.
Suppose you want to create a package named hello-fastn
, you need to follow
these steps:
fastn create-package hello-fastn
hello-fastn
containing two files:
FASTN.ftd
and index.ftd
. You can view the contents of this folder in
a text editor such as SublimeText.cd <path-to-package>
command.cd hello-fastn
fastn serve
FASTN.ftd
FASTN.ftd
is a configuration file where we set configuration for the package.
FASTN.ftd
, the code should look like this:FASTN.ftd
-- import: fastn
-- fastn.package: hello-fastn
hello-fastn
.index.ftd
index.ftd
is the index page of your package. You can think of the index page
as being the home or default page of your package.
index.ftd
, the code should look like this:index.ftd
-- ftd.text: Hello World
ftd.text
and passed Hello World
as the value for text
property.