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

Access Array item by index in template #44

merged 1 commit into from Oct 7, 2013


None yet
2 participants

mjeanroy commented Oct 6, 2013

With this patch, you can access directly items by index in templates :

With a list like :
items = ['foo', 'bar']

you can use this template :

it will render :

Solving a different behavior with the javascript implementation as you can see here : janl/mustache.js#158

@samskivert samskivert merged commit 98c7a5d into samskivert:master Oct 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment