Stencil v0.11.0 Release Notes
Release Date: 2018-04-04 // about 6 years ago-
โจ Enhancements
- โ Added support for resolving superclass properties for not-NSObject subclasses.
Ilya Puchka #152 - The
{% for %}
tag can now iterate over tuples, structures and classes via their stored properties.
Ilya Puchka #172 - โ Added
split
filter.
Ilya Puchka #187 - ๐ Allow default string filters to be applied to arrays.
Ilya Puchka #190 - Similar filters are suggested when unknown filter is used.
Ilya Puchka #186 - โ Added
indent
filter.
Ilya Puchka #188 - ๐ Allow using new lines inside tags.
Ilya Puchka #202 - โ Added support for iterating arrays of tuples.
Ilya Puchka #177 - โ Added support for ranges in if-in expression.
Ilya Puchka #193 - โ Added property
forloop.length
to get number of items in the loop.
Ilya Puchka #171 - Now you can construct ranges for loops using
a...b
syntax, i.e.for i in 1...array.count
.
Ilya Puchka #192
๐ Bug Fixes
- ๐ Fixed rendering
{{ block.super }}
with several levels of inheritance.
Ilya Puchka #154 - ๐ Fixed checking dictionary values for nil in
default
filter.
Ilya Puchka #162 - ๐ Fixed comparing string variables with string literals, in Swift 4 string literals became
Substring
and thus couldn't be directly compared to strings.
Ilya Puchka #168 - Integer literals now resolve into Int values, not Float.
Ilya Puchka #181 - ๐ Fixed accessing properties of optional properties via reflection.
Ilya Puchka #204 - No longer render optional values in arrays as
Optional(..)
.
Ilya Puchka #205 - ๐ Fixed subscription tuples by value index, i.e.
{{ tuple.0 }}
.
Ilya Puchka #172
- โ Added support for resolving superclass properties for not-NSObject subclasses.