feat(if): Support elif tags

This commit is contained in:
Kyle Fuller
2017-03-03 09:56:41 +00:00
parent 233dcfc59a
commit dc8759ba34
4 changed files with 135 additions and 11 deletions

View File

@@ -1,5 +1,22 @@
# Stencil Changelog
## Master
### Enhancements
- `if` blocks may now contain else if (`elif`) conditions.
```html+django
{% if one or two and not three %}
one or two but not three
{% elif four %}
four
{% else %}
not one, two, or four
{% endif %}
```
## 0.8.0
### Breaking