handlebars-rust icon indicating copy to clipboard operation
handlebars-rust copied to clipboard

Rust templating with Handlebars

Results 43 handlebars-rust issues
Sort by recently updated
recently updated
newest added

Some benches were not totally stable on my computer (it's really hot these days, maybe I hit the temp freq switch of my cpu in the benches) But on some...

In production code the helpers may returns error, we could returns the underlying error from helper when `render_template`. Below are some pseudo-code: ```rust fn query_name_by_id(id: &str) -> Result { ......

question

Fixes #157 This is an attempt in progress to add async support for handlebars helper. The whole render call stack needs to be `async` when any of the helper is...

This allows custom helpers to manipulate the `@partial-block` variable.

Fixes #440 Changes to be included: - [x] Update `Context` API to hold a borrowed reference of any `T: Valuable`, currently it owns a converted `serde_json::Value` - [x] Update `Registry`...

This changeset attempts to add support for standalone dot as a valid parameter in current parser.

Added Clone to registry. Closes #396

This patch adds preprocess function support that transform any input template string with an user defined function. This is to solve issue like #387 .

Since `register_local_helper` and `get_local_helper` already make use of `Rc` in their signatures I figured there wouldn't be any harm in providing a way to create helpers using `Rc` directly without...