jbroadway/elefant — Issue #57: Need a way to escape {{ and }} in templates
Author: jbroadway
Created: 2011-12-13 16:21:54+00:00
State: open
Labels: feature

Currently you can include just a `{{` or a `}}` in a template (as long as they don't match up), but there's no way to include `{{ some text }}` without it triggering a tag.

A way to escape both of these would be useful for integrating with client-side template formats like the one in [Ember.js](http://www.emberjs.com/).

Possible options:

* Use a different syntax that gets translated into `{{` and `}}` such as `[[` and `]]`
* Use a triple brace, e.g., `{{{ some text }}}`
* Use another escape character before it, e.g., `\{{ some text \}}`

I'd probably prefer options 2 personally, but let's think on it first.