paularmstrong/swig — Issue #41: {% parent %} tag does not function inside an {% if %} block
Author: elliotf
Created: 2012-01-31 17:46:40+00:00
State: open

This is likely a problem for more things than the {% if %} block, but when extending a template like so:

{% extends '/layout.html' %}
{% block someblock %}{% if something %}{{ something }}{% else %}{% parent %}{% endif %}{% endblock %}

The parent content does not appear until I move {% parent %} outside the {% if %}. There are also no tests for the {% parent %} tag.

I'm willing to take a crack at fixing this if you let me know your preferred/suggested route.