Ning Sun

Results 233 issues of 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...

help wanted
Difficulty-Hard

Support syntax ``` handlebars {{#if ...}} {{else if ...}} {{else}} {{/if}} ``` https://github.com/wycats/handlebars.js/pull/892

enhancement
help wanted
syntax

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...

enhancement

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...

enhancement

Handlebarsjs has deprecated decorator API from public and will only use for internal features (partial/inline).

enhancement

Add doc book to explain every corner of this library.

doc

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`.

enhancement

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...

enhancement