Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Curly braces

edited April 2012 in Framework

My question is how to literally specify opening and closing double curly braces ({{}}) in a template? I'm thinking of using the Angular javascript library for some client side mvc and found it too uses curly braces to bind expressions to elements.

Elefant looks to be a fabulous piece of technology by the way, I'm really looking forward to using it in my next project!

Comments

  • Thanks, glad you like!

    You should be able to escape double-curly braces like this:

    <p>This is a tag: \{{foo\}}</p>
    

    You can really just escape the first one and it'll work the same way:

    <p>This is a tag: \{{foo}}</p>
    

    Cheers!

  • Many thanks...

Sign In or Register to comment.