xxgreg / mustache

Mustache template Dart library
BSD 2-Clause "Simplified" License
57 stars 59 forks source link

Escape curly brackets #22

Closed MikeMitterer closed 8 years ago

MikeMitterer commented 9 years ago

Hi, is there really no better way to escape curly brackets than this: (The output should be: <div>Repeat me {{name}} {{name2}}</div>)

        {{= | | =}}
        <div>Repeat me {{name}} {{name2}}</div>
        |= {{ }} =|

Something like \{{name}} for example...

If this is the only way at the moment - could you please add a note to your README? Would be cool - it took my quite a while to figure out this workaround... Thanks!

xxgreg commented 9 years ago

I follow the mustache spec closely. I'm not convinced that it makes sense to add extra features outside of the spec.

I also think it is a good idea to save detailed documentation about advanced features for the mustache manual. There is a link at the top of the readme. http://mustache.github.io/mustache.5.html

MikeMitterer commented 9 years ago

Hmmm, I thought this is part of the spec - sorry! I'm using your lib for some of my components in my http://mdl.mikemitterer.at/#/repeat lib - I want to get rid of this "comment"-construct from above.

Something like this would be appropriate:

<template>
        <div>Repeat me {{name}} {{name2}}</div>
</template>

The part within