Welcome to Fes

What's Fes?

Fes is a lightweight, static, and opinionated microframework.

API Reference

fes.fes fes.fes(header, footer)
Create a new site instance.
fes:custom fes:custom(str)
Insert custom raw HTML into the site.
fes:build fes:build()
Build the complete HTML output for the site.
core.json.json_decode core.json.json_decode(json)
Decode a JSON string into a Lua value.
core.json.json_encode core.json.json_encode(value)
Encode a Lua value into JSON text.
core.std.fes_version core.std.fes_version()
Return the Fes framework version.
core.std.site_version core.std.site_version()
Return the site's version value.
core.std.a core.std.a(link, str)
Create a standard HTML anchor tag.
core.std.ha core.std.ha(link, str)
Create a heading-style anchor.
core.std.external core.std.external(link, str)
Create an external-link anchor with target=_blank.
core.std.note core.std.note(str)
Render a note-styled block.
core.std.muted core.std.muted(str)
Render text with muted visual styling.
core.std.callout core.std.callout(str)
Render a callout-styled container.
core.std.h1 core.std.h1(str)
Render an H1 heading.
core.std.h2 core.std.h2(str)
Render an H2 heading.
core.std.h3 core.std.h3(str)
Render an H3 heading.
core.std.h4 core.std.h4(str)
Render an H4 heading.
core.std.h5 core.std.h5(str)
Render an H5 heading.
core.std.h6 core.std.h6(str)
Render an H6 heading.
core.std.p core.std.p(str)
Render a paragraph element.
core.std.pre core.std.pre(str)
Render a preformatted text block.
core.std.code core.std.code(str)
Render code inside a pre element.
core.std.ul core.std.ul(items)
Render an unordered list.
core.std.ol core.std.ol(items)
Render an ordered list.
core.std.tl core.std.tl(items)
Render a text list inline.
core.std.blockquote core.std.blockquote(str)
Render a blockquote element.
core.std.hr core.std.hr()
Render a horizontal rule.
core.std.img core.std.img(src, alt)
Render an image element.
core.std.strong core.std.strong(str)
Render strong-formatted text.
core.std.em core.std.em(str)
Render emphasized text.
core.std.br core.std.br()
Render a line break element.
core.std.div core.std.div(content, class)
Render a div with optional class.
core.std.span core.std.span(content, class)
Render a span with optional class.
core.std.escape core.std.escape(str)
Escape HTML special characters.
core.std.site_name core.std.site_name()
Return the site name.
core.std.site_title core.std.site_title()
Return the site title.
core.std.site_authors core.std.site_authors()
Return the site authors list.
core.std.join core.std.join(arr, sep)
Join array elements with a separator.
core.std.trim core.std.trim(str)
Trim whitespace from a string.
core.std.table core.std.table(headers, rows)
Render an HTML table.
core.std.highlight core.std.highlight(str)
Highlight text with framework styling.
core.std.banner core.std.banner(str)
Render a banner-styled block.
core.std.center core.std.center(str)
Center content horizontally.
core.std.nav core.std.nav(link, str)
Render a navigation link.
core.std.rl core.std.rl(r, l)
Align content right and left.
core.symbol.copyright core.symbol.copyright
Return the copyright symbol.
core.symbol.registered_trademark core.symbol.registered_trademark
Return the registered trademark symbol.
core.symbol.trademark core.symbol.trademark
Return the trademark symbol.
core.util.cc core.util.cc(tbl)
Concatenate multiple strings into one.
core.util.copyright core.util.copyright(link, holder)
Generate a formatted copyright notice.