paularmstrong/swig — Issue #49: Change `empty` tag in for loops to `else`
Author: paularmstrong
Created: 2012-02-11 18:02:00+00:00
State: open
Labels: Change, Easy!

To be more Jinja/Twig compatible, we should allow the `else` tag to be an alias for the `empty` Since the `else` tag already exists, it should act as a switch to check if `_.last(this.parent).name === 'for'` evaluates to true and then jump into the `empty` tag instead.

We should also consider removing the `empty` tag in favor of `else`. Thoughts?