#9251 closed defect (patchwelcome)
DTL: Extending a block inside a for loop doesn't work
Reported by: | wolfram | Owned by: | Neil Roberts |
---|---|---|---|
Priority: | low | Milestone: | future |
Component: | DojoX DTL | Version: | 1.3.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
See the use case example here http://static.uxebu.com/~cain/dtl-extends-problem/
Basically I am overridding a template block which is inside a for loop by an extending template but the block is not properly replaced.
{% for i in items %}
{% block inner_block %} {% endblock %}
{% endfor %}
in the extending template I do
{% extends base_tpl_path %}
{% block inner_block %}
item: {{ i }}<br /> I am the overriding inner block
{% endblock %}
this only overrides the last occurence of the block in the for-loop
Change History (4)
comment:1 Changed 12 years ago by
Milestone: | tbd → 1.4 |
---|---|
Status: | new → assigned |
comment:2 Changed 11 years ago by
Milestone: | 1.4 → future |
---|
comment:3 Changed 9 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | assigned → closed |
comment:4 Changed 9 years ago by
Priority: | high → low |
---|
Note: See
TracTickets for help on using
tickets.
dtl is unsupported. any further patches are welcome.