Handlebars
Handlebars extends Mustache-style syntax with
helpers and richer block expressions. Used when a directory contains
template.handlebars (and no template.mustache).
Features
- Block helpers (
{{#each}},{{#if}},{{#with}}) and the built-inequalcomparison block. - Helpers:
format_time,markdown,embed_text,embed_base64,equal. - Partials via
{{> name}}, including Markdown partials. - HTML-escaped by default;
{{{triple}}}and themarkdown/embed_texthelpers emit raw HTML — do not feed them untrusted data.
Handlebars is the recommended engine for most dynamic documents: enough logic and helpers for real templates, while staying declarative.