Ning Sun
Ning Sun
This patch adds preprocess function support that transform any input template string with an user defined function. This is to solve issue like #387 .
This is an experiment for making a JavaScript API for handlebars wasm. The result is expected as similar as original handlebarsjs library.
Finally we have (wasm-bindgen)[https://github.com/alexcrichton/wasm-bindgen] to expose Rust struct to JavaScript, so we should be able to create `Handlebars` instance from JavaScript, and call any API from it. This has made...
Support syntax ``` handlebars {{#if ...}} {{else if ...}} {{else}} {{/if}} ``` https://github.com/wycats/handlebars.js/pull/892
Introduction to valuable * https://tokio.rs/blog/2021-05-valuable * https://github.com/tokio-rs/valuable Valuable solve the problem of our data container. Currently by converting data into `serde_json::Value`, it has to be fully copied. According to our...
A few cli applications are using handlebars for terminal text output. The idea is to provide features that benefit scenario of this, like: * text escape settings * colored output...
Handlebarsjs has deprecated decorator API from public and will only use for internal features (partial/inline).
At the moment, we only support index access for Array. String is also accessible via number index. Given `s = "hello"`, the expression `s.[0]` should output `h`.
What if we want some asynchronous tasks in handler helpers? With current API you might be able to do that but there is no guarantee on the order of writes...