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