alpha p1
This commit is contained in:
5
examples/multi-page/Fes.toml
Normal file
5
examples/multi-page/Fes.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
[app]
|
||||
|
||||
name = "multi-page"
|
||||
version = "0.0.1"
|
||||
authors = ["vx-clutch"]
|
||||
15
examples/multi-page/www/index.lua
Normal file
15
examples/multi-page/www/index.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
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:h1("Home")
|
||||
site:note(
|
||||
fes.std.ul({
|
||||
fes.std.a("page1"),
|
||||
fes.std.a("page2"),
|
||||
})
|
||||
)
|
||||
|
||||
return site
|
||||
15
examples/multi-page/www/page1.lua
Normal file
15
examples/multi-page/www/page1.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
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:h1("Page 1")
|
||||
site:note(
|
||||
fes.std.ul({
|
||||
fes.std.a("/", "home"),
|
||||
fes.std.a("page2"),
|
||||
})
|
||||
)
|
||||
|
||||
return site
|
||||
15
examples/multi-page/www/page2.lua
Normal file
15
examples/multi-page/www/page2.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
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:h1("Page 2")
|
||||
site:note(
|
||||
fes.std.ul({
|
||||
fes.std.a("/", "home"),
|
||||
fes.std.a("page1"),
|
||||
})
|
||||
)
|
||||
|
||||
return site
|
||||
Reference in New Issue
Block a user