I have an app in Node.js using Expressjs and Handlebars as the template engine.
Expressjs uses layouts and then renders views. The layout (layout.hbs) looks like th
You have 2 options. The second is THE best way to go:
1) Escape the mustaches
2) Precompile
This will compile the template on the server before it goes to the client. This will make the template ready to use and reduces the burden on the browser.