wbond / pybars3

Handlebars.js template support for Python 3 and 2
GNU Lesser General Public License v3.0
179 stars 46 forks source link

check existance at specific index in array #67

Closed dazoot closed 2 years ago

dazoot commented 4 years ago

When i check the existence of an array item at specific index, i get an IndexError: list index out of range.

My template:

{{#if latestProjectsFreeForView.3.projectName}}
{{/if}}

latestProjectsFreeForView has just 2 items.

In javascript version it works.

joseleperez commented 4 years ago

Is there an estimate on when this will be merged to master?

wbond commented 4 years ago

No, everyone who works on this repo does so in their free time. Feel free to fork and rename if you are interested in maintaining the project.