-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
item list not rendering #27
Comments
Can you write a test case for that? Can you check examples/ for existing tests? They all pass for me. |
I'm getting the same issue when putting the example from the project homepage into a CouchApp. If I use {{%IMPLICIT-ITERATOR iterator=test}}, then test is defined, but without it {{.}} yields nothing. I'm starting to think the example is wrong, especially based on the documentation for the IMPLICIT-ITERATOR and for http://mustache.github.com/mustache.5.html. I think the {{.}} is only defined with the custom IMPLICIT-ITERATOR pragma, since it's not mentioned at all in the main mustache documentation. To iterate, your array needs to contain objects eg:
Or you need to use IMPLICIT-ITERATOR:
The documentation for this port seems to conflate the two. |
good find, I'll look into updating the docs |
hm, no, sections for iteration and the implicit iterator pragma are separately documented. please reopen and suggest a patch to README.md if you think it needs clarification. |
This is the output I get from running the example, are array iterators broken?
The text was updated successfully, but these errors were encountered: