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, [
#("name", chaplin.string("World")),
])
assert rendered == "Hello, World!"
}
Further documentation can be found at https://hexdocs.pm/chaplin.