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"})
来源:https://stackoverflow.com/questions/24943334/simple-way-to-escape-curly-braces