Stencil v0.10.0 Release Notes
Release Date: 2017-10-28 // over 6 years ago-
โจ Enhancements
- โ Adds
counter0
to for loop context allowing you to get the current index of the for loop 0 indexed. - Introduces a new
DictionaryLoader
for loading templates from a Swift Dictionary. - โ Added
in
expression in if tag for strings and arrays of hashable types - You can now access the amount of items in a dictionary using the
count
property.
๐ Bug Fixes
- ๐ Fixes a potential crash when using the
{% for %}
template tag with the incorrect amount of arguments. - ๐ Fixes a potential crash when using incomplete tokens in a template for
example,
{%%}
or{{}}
. - ๐ Fixes evaluating nil properties as true
- โ Adds