alpha p2
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
@@ -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
5
examples/json/Fes.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
[app]
|
||||
|
||||
name = "json"
|
||||
version = "0.0.1"
|
||||
authors = ["vx-clutch"]
|
||||
34
examples/json/www/index.lua
Normal file
34
examples/json/www/index.lua
Normal 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
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
5
examples/simple/Fes.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
[app]
|
||||
|
||||
name = "simple"
|
||||
version = "0.0.1"
|
||||
authors = ["vx-clutch"]
|
||||
1
examples/simple/www/index.lua
Normal file
1
examples/simple/www/index.lua
Normal file
@@ -0,0 +1 @@
|
||||
return "Hello, World!"
|
||||
Reference in New Issue
Block a user