Skip to content

Releases: sunng87/handlebars-rust

v4.1.5

18 Nov 07:19
v4.1.5
3d8fc48
Compare
Choose a tag to compare

[Fixed] Single-quote string literal is supported, again [#475]

v4.1.4

05 Nov 22:58
v4.1.4
5f11472
Compare
Choose a tag to compare
  • [Fixed] Corrected empty line stripping strategy [#473]

v4.1.3

13 Sep 14:27
v4.1.3
fec0190
Compare
Choose a tag to compare
  • [Added] @last variable for each block with object [#466]
  • [Fixed] Missing whitespaces behind expression [#468]

v4.1.2

22 Aug 14:03
v4.1.2
68bb096
Compare
Choose a tag to compare

Added

  • Support for generic types in handlebars_helper!.
  • Getter and setter for rhai Engine from registry.

Fixed

  • Improve doc for dev_mode that it has to be enabled before adding templates.

v4.1.1

31 Jul 17:46
v4.1.1
51cbc54
Compare
Choose a tag to compare
  • [Changed] Update rhai to 1.0 [#455]
  • [Fixed] Empty line stripping for partial include statement, and other corner cases [#458]

v4.1.0

12 Jul 07:06
v4.1.0
5cf885a
Compare
Choose a tag to compare

Detailed Changelog

  • [Added] export StringOutput as requested in #442
  • [Changed] strict mode now applies to our helper macro handlebars_helper! and built-in helpers based on it.
  • [Fixed] Line stripping feature for standalone statement introduced in #404 is now aligned with handlebarsjs. #448

v4.0.0

25 May 14:38
v4.0.0
bb68f45
Compare
Choose a tag to compare

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 and ScriptError is now a cause of RenderError [#395]
  • [Changed] Empty lines around block helpers are now stripped [#404]
  • [Changed] Breaking RenderContext::get_partial now returns Option<&Template>
  • [Changed] Breaking Capitalize names like HtmlExpression and IoError based on clippy recommendations [#424]
  • [Changed] Breaking Improved return type of call_inner from HelperDef to avoid misleading [#437]
  • [Fixed] reference starts with null, true and false 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 and TemplateRenderError are removed and merged into
    TemplateError and RenderError [#395]

v3.5.3

20 Feb 14:11
v3.5.3
618200f
Compare
Choose a tag to compare

v3.5.3

[Fixed] value access issue when upper block has a base value [#419]

v3.5.1

25 Oct 04:21
v3.5.1
c39a756
Compare
Choose a tag to compare
(cargo-release) handlebars version 3.5.1