diff --git a/TODO b/TODO index 50b3775..db1566e 100644 --- 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 index 1a2dad5..cdebef8 100644 --- 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 index 509e9c7..f903dea 100644 --- 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.")