handlebars-rust v4.0.0 Release Notes
Release Date: 2021-05-25 // almost 3 years ago-
- [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.
For instance,
{{(parent)}}
can no longer accessparent
field of the context object, use{{lookup this "parent"}}
instead. This change applies to partial inclusion, too. - ๐ฅ [Removed] Breaking option to disable source map is removed [#395]
- ๐ฅ [Removed] Breaking
TemplateFileError
andTemplateRenderError
are removed and merged intoTemplateError
andRenderError
[#395]
- [Added]