hogan.js
hogan.js copied to clipboard
Root element iteration broken (ok in mustache.js)
var tpl = Hogan.compile('{{#.}} {{name}} {{/.}}');
tpl.render([{name:'foo'},{name:'bar'}]);
Expected:
foo bar
Actual: empty string
Works fine with Mustache, doesn't work in hogan.js.
+1 Isn't Hogan supposed to pass all Mustache tests? Maybe this one isn't tested properly...
This recently hit me when we transitioned over to precompiling our templates with Hogan. Would be really great to see this fixed.