Handlebars Rust Versions Save

Rust templating with Handlebars

v5.1.0

4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/sunng87/handlebars-rust/compare/v5.0.0...v5.1.0

v5.0.0

4 months ago

5.0.0

A semver major release that introduces some API breaking changes.

Highlights

  • 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.
  • Lifetime in Helper trait has been simplified.

Changes compared to 4.3

  • [Added] public mutable access to local variables in BlockContext [#533]
  • [Changed] Simplified lifetime specifiers for Helper, ScopedJson and some other related types and functions. [#532]
  • [Changed] Updated TemplateError to reduce its size. Direct field access is removed in favor of access methods
  • [Changed] Introducing RenderErrorReason for typed render error
  • [Changed] Changed register_template_directory api for more customizations #[610]
  • [Changed] Updated rust-embed to 8.0

Collaboration Wanted

I'm looking for collaborations to join the development with me on this project. Contact via email if your are interested in.

Auto-generated changelog

New Contributors

Full Changelog: https://github.com/sunng87/handlebars-rust/compare/v4.5.0...v5.0.0

v4.3.7

1 year ago

4.3.7 - 2023-05-11

  • [Fixed] Use fully qualified name of Result in handlebars_helper macro [#578]
  • [Fixed] Allow single-quote JSON literal [#577]

v4.3.6

1 year ago

[Fixed] Loading template files with multiple extensions, a bug introduced in 4.3.0 when refactoring directory source.

v4.3.0

2 years ago

Changes included in 4.3.0 release:

  • [Changed] update MSRV to 1.57 as rhai requires
  • [Fixed] Reimplemented indent support for partial expression {{> partial}}, which is introduced in 4.2.0. The new implementation is aligned with original javascript version, that every text line generated from partial are indented as {{> partial}} does. prevent_indent will turn-off this feature. [#505]
  • [Changed] changed error support library from quick_error to thiserror

Caution that the partial indent fix will make handlebars 4.3 behaviour different with 4.2 when there is indent with {{> partial}} statement.

v4.2.1

2 years ago

Fixed

  • Nested partial @partial-block referencing issue [#488]
  • Docs generation on docs.rs for rust-embed feature

v4.2.0

2 years ago

Added

  • RustEmbed support for loading templates from [#484]

Fixed

  • Parser support for variables begins with digit [#479]
  • Typo in Debug impl of Handlebars [#485 ]

Changed

  • Keep indent whitespaces for partial expression {{> partial}} as default in handlebarsjs. A new option prevent_indent is provided on Handlebars to turn off this behaviour. [#486]
  • Update MSRV to 1.51 due to dependency changes

v4.1.5

2 years ago

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

v4.1.4

2 years ago
  • [Fixed] Corrected empty line stripping strategy [#473]

v4.1.3

2 years ago
  • [Added] @last variable for each block with object [#466]
  • [Fixed] Missing whitespaces behind expression [#468]