What does triple curly braces mean in handlebars template syntax?
For example
{{{variable}}}
I cannot find any documentation.
Thanks
Because it was originally designed to generate HTML, Handlebars escapes values returned by a {{expression}} . If you don't want Handlebars to escape a value, use the "triple-stash", {{{ . Source: https://handlebarsjs.com/guide/#html-escaping.
{{> "partials"}} is a helper for reusing chunks of template code in handlebars files. This can be useful for any repeating elements, such as a post card design, or for splitting out components like a header for easier to manage template files.
Because it was originally designed to generate HTML, Handlebars escapes values returned by a
{{expression}}
. If you don't want Handlebars to escape a value, use the "triple-stash",{{{
.
Source: https://handlebarsjs.com/guide/#html-escaping
Found via: https://github.com/wycats/handlebars-site/issues/28
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