curly_brackets
curly_brackets

Reputation: 5598

Escaping partial with assemble

I have a partial which is a comment-entry. I use this to render all known comments, to the partial contains fields like {{byUser}} and so forth.

When a user posts a new comment, I want to use the Handlebars.js templating, and use the same partial, but this time I don't want assemble to try to convert the double-brackets to data, but just output the partial as defined.

I tried to tripple-stash {{{}}} the partial, but it doesn't work.

I can't tripple-stash the content of the partial, because I use it as a "normal" partial for old comments.

What to do?

Upvotes: 2

Views: 266

Answers (1)

Hariadi
Hariadi

Reputation: 606

Add backslash \ before opening tag.

\{{}}

Upvotes: 3

Related Questions