Rust templating with Handlebars
Full Changelog: https://github.com/sunng87/handlebars-rust/compare/v5.0.0...v5.1.0
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 some
other related types and functions. [#532]TemplateError
to reduce its size. Direct field access is
removed in favor of access methodsRenderErrorReason
for typed render errorregister_template_directory
api for more customizations
#[610]I'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
Result
in handlebars_helper
macro [#578][Fixed] Loading template files with multiple extensions, a bug introduced in 4.3.0 when refactoring directory source.
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.
Debug
impl of Handlebars
[#485 ][Fixed] Single-quote string literal is supported, again [#475]
@last
variable for each
block with object [#466]