vol4ok / hogan-express

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

Bug related to new custom tags #11

Closed hellopat closed 11 years ago

hellopat commented 11 years ago

Hey vol4ok,

There's a small bug in the new customTags implementation.

If you don't have any custom tags in your templates, the statement (line 125 - compiled)

customTags = str.match(/({{#yield-\w+}})/g);

returns null

To fix this, change line 127 to

if (customTags && customTags.length) {

screen shot 2013-08-20 at 12 51 52 pm

Thanks!

vol4ok commented 11 years ago

fixed