Is there a simple way to build a string "{value}" with Handlebars? Perhaps something analogous to:
Handlebars.compile("\{{{var}}\}")({var:"value"})
Handlebars support whitespace with the ~ character. The following should work
Handlebars.compile("{ {{~var~}} }")({var:"value"})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With