Skip to content

0.9.0

Compare
Choose a tag to compare
@kylef kylef released this 18 Apr 23:12
· 308 commits to master since this release

Enhancements

  • for block now can contain where expression to filter array items. For example {% for item in items where item > 1 %} is now supported.

  • if blocks may now contain else if (elif) conditions.

    {% if one or two and not three %}
      one or two but not three
    {% elif four %}
      four
    {% else %}
      not one, two, or four
    {% endif %}
  • for block now allows you to iterate over array of tuples or dictionaries.

    {% for key, value in thing %}
      <li>{{ key }}: {{ value }}</li>
    {% endfor %}

Bug Fixes

  • You can now use literal filter arguments which contain quotes.
    #98