Moe-js v0.3

Escaping Braces

Moe-js doesn't provide any support for escaping braces outside of directives. Instead, just use a simple expression:

{{"{{"}} This is double braced }}


{{ This is double braced }}

Single braces don't usually need to be escaped, unless they're immediately before a Moe-js directive:




alternatively your could include spaces to separate the braces and then use ~ to strip it out:

{ {{~model.title~}} }

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.