12

How do you force handlebars.js to ignore (and not render) templates?

jonschlinkert
  • 10,872
  • 4
  • 43
  • 50
curly_brackets
  • 5,491
  • 15
  • 58
  • 102

2 Answers2

32

It's possible to escape the line with backslash

\{{>partialName}}

It's not mentioned in the documentation, but a look at the source-code documentation revealed this technique.

curly_brackets
  • 5,491
  • 15
  • 58
  • 102
2

HTML entity might be a solution if you just wang to display your brackets. Try { and }.

Weijing Jay Lin
  • 2,991
  • 6
  • 33
  • 53