Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any helpers that permit handlebars bindings to be ignored / not compiled?

I'm using assemble with grunt to build handlebars templates, but I've got some areas that I don't want to be compiled, so that they can be rendered afterwards in the browser.

Are there any special tags/helpers that can do that ?

like image 978
skxc Avatar asked Dec 29 '25 16:12

skxc


1 Answers

You can escape the handlebars so they're excluded during the assemble build, then use them in the frontend...

{{! rendered by assemble }}
<h1>{{foo}}</h1>

\{{! rendered on the browser }}
<h2>\{{bar}}</h2>
like image 136
doowb Avatar answered Dec 31 '25 07:12

doowb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!