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
Nested sections with duplicate names #12
Comments
Just a followup to this, I got my recursion working. I'm not sure if this is still a bug. It seems fairly hard to support. |
It is tough to support... It definitely doesn't work with a regex based parser, for the same reason that you can't parse HTML with regex I would prob'ly use a partial or a wrapper method ( |
This is not just names that are the same it will also occur in this setup. {{#agents}} You can't loop arrays of arrays if they are non-associative using implicit operator because the inner {{#.}} call will act like the outer one and cause a {{#user}} not closed error. |
And just for fun, a few more test cases here: d026315 |
Ran into a problem when trying to do some recursion.
A template like this:
{{#parents}}Children of {{name}}:
{{#parents}}{{>children}}{{/parents}}
{{/parents}}
fails because it ends on the first {{/parents}} end block, causing an invalid template.
I'm trying to use this on a recursive method to display an infinitely recursive unordered list. Perhaps I'm going about this the wrong way though. Here's the code I'm working with:
http://github.com/zombor/Vendo/blob/feature%2Fproduct-categories/modules/admin/templates/admin/category/product_category_list.mustache
which gets data fed from:
http://github.com/zombor/Vendo/blob/feature%2Fproduct-categories/application/classes/model/product/category.php#L57
product_categories is a recursive array I'm trying to display.
The text was updated successfully, but these errors were encountered: