Returns generated HTML from provided Markdown string.
+
Std
@@ -490,10 +494,99 @@ footer {
+
Bus
+
+
+
Name
+
Description
+
+
+
+
+
bus.url
+
The current url that was given.
+
+
+
bus.params
+
A table of url parameters if any. Ex: ?foo=bar*baz=foobar
+
+
+
+
Site
+
+
+
Name
+
Description
+
+
+
+
+
site.version
+
The version of the website found in the Fes.toml
+
+
+
site.name
+
The name of the website found in the Fes.toml
+
+
+
site.authors
+
A table of all authors defined in Fes.toml
+
+
+
+
App
+ Fes's app module is a special table
+ because it contains user defined functions. These
+ functions are defined in the include/ For
+ example if you define a include/hello.lua
+ file with given contents:
local hello = {}
+
+hello.render(std) return std.h1("Hello, World!") end
+
+return hello
This can be called from another with,
+ fes.app.hello.render(fes.std). Do with this
+ as you will.
+
Speical Directories
+
+
+
Name
+
Description
+
+
+
+
+
www/
+
The main website is
+ contained here, this is
+ where www/index.lua
+ lives.
+
+
+
static/
+
All static content should
+ be placed here and can
+ be accessed at
+ /static/path-to-file.
+
+
+
include/
+
Contains lua files that are
+ preloaded and globally
+ accessible.
+
+
+
archive/
+
Files here can be viewed in
+ a file browser like
+ format at
+ /archive/path-to-dir.