Rust templating with Handlebars
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/sunng87/handlebars-rust/compare/v5.0.0...v5.1.0
Published by sunng87 10 months ago
A semver major release that introduces some API breaking changes.
RenderError
has been rewritten for typed error reason. In previous versions we use string message for RenderError
which is impossible to handle with code. This version introduces RenderErrorReason
so you can use match
to deal various error reasons.Helper
trait has been simplified.BlockContext
[#533]Helper
, ScopedJson
and someTemplateError
to reduce its size. Direct field access isRenderErrorReason
for typed render errorregister_template_directory
api for more customizationsI'm looking for collaborations to join the development with me on this project. Contact via email if your are interested in.
DirectorySourceOptions
by @sunng87 in https://github.com/sunng87/handlebars-rust/pull/607
Full Changelog: https://github.com/sunng87/handlebars-rust/compare/v4.5.0...v5.0.0
Published by sunng87 almost 2 years ago
[Fixed] Loading template files with multiple extensions, a bug introduced in 4.3.0 when refactoring directory source.
Published by sunng87 over 2 years ago
Changes included in 4.3.0 release:
thiserror
Caution that the partial indent fix will make handlebars 4.3 behaviour different with 4.2 when there is indent with {{> partial}}
statement.
Published by sunng87 over 2 years ago
Published by sunng87 almost 3 years ago
Debug
impl of Handlebars
[#485 ]Published by sunng87 almost 3 years ago
[Fixed] Single-quote string literal is supported, again [#475]
Published by sunng87 almost 3 years ago
Published by sunng87 about 3 years ago
@last
variable for each
block with object [#466]Published by sunng87 about 3 years ago
Published by sunng87 about 3 years ago
Published by sunng87 over 3 years ago
StringOutput
as requested in #442Published by sunng87 over 3 years ago
4.0 brings in dev_mode
to Handlebars. By turning on dev_mode
, templates loaded from files or directories are auto-reloaded
each time. This makes development workflow more fluent.
4.0 provides up to 20% performance boost compared to 3.x.
Several corner cases were fixed in this release. Some has already been backported on to 3.x branch.
dev_mode
for registry: templates and scripts loaded from file are alwaysClone
[#395]len
[#421]rhai
to 0.19 and then 0.20 [#391]#each
helper now renders else block for non-iterable data [#380]TemplateError
and ScriptError
is now a cause of RenderError
[#395]RenderContext::get_partial
now returns Option<&Template>
HtmlExpression
and IoError
based on clippy recommendations [#424]call_inner
from HelperDef
to avoid misleading [#437]null
, true
and false
were parsed incorrectly [#382]@partial-block
[#401]TemplateFileError
and TemplateRenderError
are removed and merged intoTemplateError
and RenderError
[#395]Published by sunng87 almost 4 years ago