doy / text-handlebars

http://handlebarsjs.com/ for Text::Xslate
http://metacpan.org/release/Text-Handlebars
6 stars 9 forks source link

Raw blocks not handled at all, also quoted blocks not handled at all #11

Open Corion opened 7 years ago

Corion commented 7 years ago

Text::Handlebars doesn't handle escaped braces. The documentation of Handlebars.js documents these as

\{{escaped}}

should render as

{{escaped}}

But when encountering {{ , Text::Handlebars crashes.

http://handlebarsjs.com/expressions.html

The documentation of Handlebars also claims that {{{{raw}}}} should work, but this fails with Handlebars.js for me.

Corion commented 7 years ago

Sorry that I didn't supply a test case when submitting the bug. I've attached one now, as a text file as Github doesn't like '.t' uploads...

Corion commented 7 years ago

handlebars-raw.t.txt