commit edfb8f03c97841eeeb3375a5940852cf006cd7c4
parent 2ecad5f4391d70f73ca97f26fb332b6cdb552143
Author: vx-clutch <[email protected]>
Date: Sat, 22 Nov 2025 10:31:45 -0500
small updates
Diffstat:
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/TODO b/TODO
@@ -1 +1,2 @@
Make this static ( cannot find core.std everywhere )
+Add hotreloading
diff --git a/core/builtin.lua b/core/builtin.lua
@@ -6,7 +6,7 @@ M.__index = M
function M.site_builder(header, footer)
local config = {}
local site_config = {}
-
+
local fes_mod = package.loaded.fes
if fes_mod and fes_mod.config then
config = fes_mod.config
@@ -14,7 +14,7 @@ function M.site_builder(header, footer)
site_config = config.site
end
end
-
+
local self = {
version = site_config.version or "",
title = site_config.title or "Document",
diff --git a/doc/www/index.lua b/doc/www/index.lua
@@ -32,7 +32,7 @@ function docs:func(fn, signature, desc)
return self
end
-docs:func("site_builder", "fes.site_builder()", "returns a site object, a required element for this framework.")
+docs:func("site_builder", "fes.site_builder() -> site", "returns a site object, a required element for this framework.")
docs:func("custom", "site:custom(content)", "adds a raw string into the site object")
docs:func("h1", "site:h1(content)", "adds a h1 tag to the site object.")
docs:func("h2", "site:h2(content)", "adds a h2 tag to the site object.")