Skip to content

0.13.0

Compare
Choose a tag to compare
@djbe djbe released this 25 Sep 23:15
· 148 commits to master since this release
c7dbba4

Breaking

Enhancements

  • You can now use parentheses in boolean expressions to change operator precedence.
    Ilya Puchka
    #165
  • Added method to add boolean filters with their negative counterparts.
    Ilya Puchka
    #160
  • Now you can conditionally render variables with {{ variable if condition }}, which is a shorthand for {% if condition %}{{ variable }}{% endif %}. You can also use else like {{ variable1 if condition else variable2 }}, which is a shorthand for {% if condition %}{{ variable1 }}{% else %}{{ variable2 }}{% endif %}
    Ilya Puchka
    #243
  • Now you can access string characters by index or get string length the same was as if it was an array, i.e. {{ 'string'.first }}, {{ 'string'.last }}, {{ 'string'.1 }}, {{ 'string'.count }}.
    Ilya Puchka
    #245

Bug Fixes

  • Fixed the performance issues introduced in Stencil 0.12 with the error log improvements.
    Ilya Puchka
    #230
  • Now accessing undefined keys in NSObject does not cause runtime crash and instead renders empty string.
    Ilya Puchka
    #234
  • for tag: When iterating over a dictionary the keys will now always be sorted (in an ascending order) to ensure consistent output generation.
    David Jennes
    #240

Internal Changes