vol4ok / hogan-express

Mustache template engine for express 3.x. Support partials and layout
MIT License
138 stars 31 forks source link

Error with custom yield tags and mustache delimeter change #20

Open pablote opened 10 years ago

pablote commented 10 years ago

If you change the mustache delimeter from {{ }} to {{{ }}} the final html contains additional characters when using custom yield tags. If changed to something like [[ ]] it simply doesn't work.

https://s3.amazonaws.com/pablobackup/hogan-express.jpg

The reason to change delimeter is to support client side libs, like angular, which also use {{ }} for templating purposes.

Here's an example project: https://s3.amazonaws.com/pablobackup/testHoganExpress.tar.gz

vol4ok commented 10 years ago

Sorry, but custom delimiter is not supported in current version. :(