save
This commit is contained in:
49
test/www/index.lua
Normal file
49
test/www/index.lua
Normal file
@@ -0,0 +1,49 @@
|
||||
local fes = require("fes")
|
||||
local site = fes.fes()
|
||||
|
||||
local std = fes.std
|
||||
local u = fes.util
|
||||
|
||||
site.copyright = std.link("https://fsdproject.org/", "fSD")
|
||||
|
||||
site:banner(table.concat {
|
||||
std.h(1, "Testing Page"),
|
||||
})
|
||||
|
||||
site:note(table.concat {
|
||||
std.h(1, "Example syntax features"),
|
||||
std.h(2, "Paragraphs"),
|
||||
std.p("This is a paragraph."),
|
||||
std.h(2, "Codeblocks"),
|
||||
std.codeblock([[
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
puts("Hello, World!");
|
||||
return 0;
|
||||
}]]),
|
||||
std.h(2, "Inline Codeblocks"),
|
||||
std.inline([[puts("Hello, World!");]]),
|
||||
std.h(2, "Links"),
|
||||
std.link("geminiprotocol.net/"),
|
||||
std.h(2, "Lists"),
|
||||
std.list {
|
||||
"Item 1",
|
||||
"Item 2",
|
||||
"Item 3",
|
||||
},
|
||||
std.h(2, "Blockquotes"),
|
||||
std.blockquote([[
|
||||
"UNIX is very simple" - Dennis Ritchie
|
||||
<br>
|
||||
"GNU's Not UNIX" - Richard Stallman
|
||||
]]),
|
||||
std.h(2, "Rules"),
|
||||
std.rule(),
|
||||
std.h(2, "Images"),
|
||||
std.image("fluffy baby seal", "/static/seal.png"),
|
||||
std.h(2, "Files"),
|
||||
std.file("seal.png", "/static/seal.png"),
|
||||
})
|
||||
|
||||
return site
|
||||
Reference in New Issue
Block a user