A Rust Site Engine, or arse
, is static site generator written in Rust. It seeks to provide a simple
and flexible base for serving sites using:
arse run config.toml
arse new
-v
or -vv
, the default level is INFO
.A default template, default.tmpl
, is provided statically within the binary. To change the Tera
template, add your custom template to the templates directory referenced in the docpaths
configuration
section of config.toml
. Once the template is in the templates directory, change the templates
parameter
in the site
configuration section to reference the template's file name. This template will now be loaded
at runtime.
The following elements are available within the Tera context for rendering:
site
, mapping directly to the fields available in the site
configuration sectionposts
, a lexically reverse-sorted list of HTML rendered from markdown in site/:topic/posts/*
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.