58 releases (8 breaking)
|new 0.9.7||Nov 26, 2020|
|0.8.4||Nov 24, 2020|
#63 in Template engine
307 downloads per month
Used in bracket-fluent
Alternative template engine using handlebars-compatible syntax designed for speed, correctness and excellent error handling.
Inspired by handlebars-rust but the API is incompatible in certain places where we think the design should be different.
Except for partials the library does not take ownership of the underlying template strings it simply references them as string slices so it is the caller's responsibility to store them; as a convenience a
Loader can be used to store and load templates from disc.
The default features are batteries included but you can set
default-features = false and cherry pick.
helpers: Include all helpers.
log-helper: Enable the
each-helper: Enable the
with-helper: Enable the
lookup-helper: Enable the
json-helper: Enable the
conditional-helper: Enable the
logical-helper: Enable the
comparison-helper: Enable the
stream: Enable the
streamfunctions on the registry.
fs: Support loading templates from the filesystem.
'regThe lifetime of the registry; helpers, partials and escape functions.
'sourceThe lifetime of a source template string.
'renderThe lifetime of a template render.
'callThe lifetime of a helper call.