Elara is a fast, minimal server that processes Lua based HTML templates. It runs as single binary and can be run almost anywhere.
Note
Elara is currently in early development. APIs and features will change between now and v1.0.
features
Single Binary | Ships as one binary and runs on almost anything. |
Lua Templating | Build your HTML pages in a lua DSL. |
coming soon
- Markdown Parsing: Insert markdown from lua.
- Static Generation: Generate a static copy to upload to a static host.
examples
routes.toml
[routes]
"/" = "templates/index.lua"index.lua
return {
body = tostring(
html.Document {
lang = "en",
html.head {
html.meta {charset = "UTF-8"},
html.title {"elara"}
},
html.body {
html.h1 { "Hello World" }
}
}
)
}