Releases: sunng87/handlebars-rust
Releases · sunng87/handlebars-rust
v4.1.5
v4.1.4
v4.1.3
v4.1.2
v4.1.1
v4.1.0
v4.0.0
4.0 Highlights
Development mode
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.
Performance improvement
4.0 provides up to 20% performance boost compared to 3.x.
Bugfixes
Several corner cases were fixed in this release. Some has already been backported on to 3.x branch.
Detailed Changelog
- [Added]
dev_mode
for registry: templates and scripts loaded from file are always
reloaded when dev mode enabled [#395] - [Added] Registry is now
Clone
[#395] - [Added] New built-in helper
len
[#421] - [Changed] Updated
rhai
to 0.19 and then 0.20 [#391] - [Changed]
#each
helper now renders else block for non-iterable data [#380] - [Changed]
TemplateError
andScriptError
is now a cause ofRenderError
[#395] - [Changed] Empty lines around block helpers are now stripped [#404]
- [Changed] Breaking
RenderContext::get_partial
now returnsOption<&Template>
- [Changed] Breaking Capitalize names like
HtmlExpression
andIoError
based on clippy recommendations [#424] - [Changed] Breaking Improved return type of
call_inner
fromHelperDef
to avoid misleading [#437] - [Fixed] reference starts with
null
,true
andfalse
were parsed incorrectly [#382] - [Fixed] dir source path separator bug on windows [#389] [#405]
- [Fixed] stack overflow with nested
@partial-block
[#401] - [Fixed] value access issue when upper block has a base value [#419]
- [Fixed] escape rules for Json string literal [#423]
- [Fixed] Breaking zero-arity subexpressions support [#433] Zero-arity subexpression no longer resolved as variable. The behaviour is now aligned with handlebarsjs.
- [Removed] Breaking option to disable source map is removed [#395]
- [Removed] Breaking
TemplateFileError
andTemplateRenderError
are removed and merged into
TemplateError
andRenderError
[#395]