From c1059eeb8745cca64bbada466922deb0e38823f3 Mon Sep 17 00:00:00 2001 From: vx-clutch Date: Tue, 16 Dec 2025 21:33:55 -0500 Subject: [PATCH] update fes --- docs.vxserver.dev/static/fes.html | 95 ++++++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/docs.vxserver.dev/static/fes.html b/docs.vxserver.dev/static/fes.html index d079f8f..43212e1 100644 --- a/docs.vxserver.dev/static/fes.html +++ b/docs.vxserver.dev/static/fes.html @@ -267,6 +267,10 @@ footer { :custom() Add a custom string to the site body + + markdown_to_html(str: string) + Returns generated HTML from provided Markdown string. +

Std

@@ -490,10 +494,99 @@ footer { +

Bus

+ + + + + + + + + + + + + + + + +
NameDescription
bus.urlThe current url that was given.
bus.paramsA table of url parameters if any. Ex: ?foo=bar*baz=foobar
+

Site

+ + + + + + + + + + + + + + + + + + + + +
NameDescription
site.versionThe version of the website found in the Fes.toml
site.nameThe name of the website found in the Fes.toml
site.authorsA 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

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
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.