This commit is contained in:
2025-11-28 21:12:57 -05:00
parent 705911ac9d
commit 8f16e257bb
17 changed files with 269 additions and 264 deletions

View File

@@ -4,7 +4,7 @@ local std = fes.std
local site = fes.fes()
site.title = "Canonical"
site.copyright = std.copyright() .. " " .. std.external("https://git.vxserver.dev/fSD", "fSD")
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
site:banner(fes.app.header.render(std))

View File

@@ -2,7 +2,7 @@ local fes = require("fes")
local site = fes.fes()
site.title = "Hello, World!"
site.copyright = fes.std.copyright() .. " " .. fes.std.external("https://git.vxserver.dev/fSD", "fSD")
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
site:h1("Hello, World!")

5
examples/json/Fes.toml Normal file
View File

@@ -0,0 +1,5 @@
[app]
name = "json"
version = "0.0.1"
authors = ["vx-clutch"]

View File

@@ -0,0 +1,34 @@
local fes = require("fes")
local site = fes.fes()
site.title = "JSON"
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
local json_pre = [[
{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}
]]
local json = fes.middleware.json_decode(json_pre)
site:h1("JSON")
site:note(fes.util.cc({
fes.std.h2("Before"),
fes.std.code(json_pre),
}))
site:note(fes.util.cc({
fes.std.h2("After"),
fes.std.ul({
json["userId"],
json["id"],
json["title"],
json["completed"],
})
}))
return site

View File

@@ -2,7 +2,7 @@ local fes = require("fes")
local site = fes.fes()
site.title = "Home"
site.copyright = fes.std.copyright() .. " " .. fes.std.external("https://git.vxserver.dev/fSD", "fSD")
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
site:h1("Home")
site:note(

View File

@@ -2,7 +2,7 @@ local fes = require("fes")
local site = fes.fes()
site.title = "Page 1"
site.copyright = fes.std.copyright() .. " " .. fes.std.external("https://git.vxserver.dev/fSD", "fSD")
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
site:h1("Page 1")
site:note(

View File

@@ -2,7 +2,7 @@ local fes = require("fes")
local site = fes.fes()
site.title = "Page 2"
site.copyright = fes.std.copyright() .. " " .. fes.std.external("https://git.vxserver.dev/fSD", "fSD")
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
site:h1("Page 2")
site:note(

5
examples/simple/Fes.toml Normal file
View File

@@ -0,0 +1,5 @@
[app]
name = "simple"
version = "0.0.1"
authors = ["vx-clutch"]

View File

@@ -0,0 +1 @@
return "Hello, World!"