Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root element iteration broken (ok in mustache.js) #154

Open
Thinkscape opened this issue Nov 4, 2013 · 2 comments · May be fixed by #220
Open

Root element iteration broken (ok in mustache.js) #154

Thinkscape opened this issue Nov 4, 2013 · 2 comments · May be fixed by #220
Assignees

Comments

@Thinkscape
Copy link

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.

@eirslett
Copy link

+1
Isn't Hogan supposed to pass all Mustache tests? Maybe this one isn't tested properly...

@Mr0grog
Copy link

Mr0grog commented Apr 17, 2015

This recently hit me when we transitioned over to precompiling our templates with Hogan. Would be really great to see this fixed.

Mr0grog added a commit to Mr0grog/hogan.js that referenced this issue Apr 17, 2015
@sayrer sayrer self-assigned this May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants