bbmustache
Mustache text templates using Erlang’s bbmustache package.
import chaplin
pub fn main() {
let assert Ok(template) = chaplin.compile("Hello, {{name}}!")
let rendered = chaplin.render(template, [
chaplin.string("name", "World"),
])
assert rendered == "Hello, World!"
}
Further documentation can be found at https://hexdocs.pm/chaplin.