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