-
Notifications
You must be signed in to change notification settings - Fork 17
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
Inner loops #41
Comments
Confirming, there is a problem with @psychobunny do you have recommendation how to reuse same template in several places? |
Yes you're right, ../ goes straight to root. Maybe it should go one loop up at a time, that would make more sense. Right now though, you can still access the parent loop by using the long form: ex.
|
Ok, but I would like to reuse templates. Most of them use So in current case, I should qualify references like this: {categories.children.name} or {categories.name}.
Do you plan to do this change? Because I'm not sure if you will enjoy pull request to the Persona, where only a few templates are reused ;) |
Fixed in Benchpress |
I have tried different compositions, but It just does not work for me. But in the same time, I'm not sure that I'm using Templates.js properly.
For example, where can we use such references?
../something
? Can it brake inner loops?Here is an example of sub-categories - https://github.com/NodeBB/nodebb-theme-persona/issues/92#issuecomment-118088218
It looks like, with very first
../
occurrence, it exits inner loop.The text was updated successfully, but these errors were encountered: