Skip to content

0.11.0

Compare
Choose a tag to compare
@kylef kylef released this 05 Apr 01:39
· 251 commits to master since this release

Enhancements

  • Added support for resolving superclass properties for not-NSObject subclasses
  • The {% for %} tag can now iterate over tuples, structures and classes via
    their stored properties.
  • Added split filter
  • Allow default string filters to be applied to arrays
  • Similar filters are suggested when unknown filter is used
  • Added indent filter
  • Allow using new lines inside tags
  • Added support for iterating arrays of tuples
  • Added support for ranges in if-in expression
  • Added property forloop.length to get number of items in the loop
  • Now you can construct ranges for loops using a...b syntax, i.e. for i in 1...array.count

Bug Fixes

  • Fixed rendering {{ block.super }} with several levels of inheritance
  • Fixed checking dictionary values for nil in default filter
  • Fixed comparing string variables with string literals, in Swift 4 string literals became Substring and thus couldn't be directly compared to strings.
  • Integer literals now resolve into Int values, not Float
  • Fixed accessing properties of optional properties via reflection
  • No longer render optional values in arrays as Optional(..)
  • Fixed subscription tuples by value index, i.e. {{ tuple.0 }}