Skip to content

0.10.0

Compare
Choose a tag to compare
@kylef kylef released this 28 Oct 20:39
· 287 commits to master since this release

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