Opened 13 years ago

Closed 10 years ago

Last modified 10 years ago

#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:


See the use case example here

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 13 years ago by Neil Roberts

Milestone: tbd1.4
Status: newassigned

comment:2 Changed 13 years ago by dante

Milestone: 1.4future

comment:3 Changed 10 years ago by ben hockey

Resolution: patchwelcome
Status: assignedclosed

dtl is unsupported. any further patches are welcome.

comment:4 Changed 10 years ago by ben hockey

Priority: highlow
Note: See TracTickets for help on using tickets.