Opened 14 years ago
Closed 14 years ago
#14690 closed (duplicate)
{% block %} defined in {% included %} page isn't 'repleacable'
Reported by: | pma_ | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.2 |
Severity: | Keywords: | block include | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I moved part of template to external file that is included in base template. My block definition in derived template doesn't replace content in include. There are no restriction in docs so I believe it's a bug.
a.html
{% include b.html %}
b.html
{% block x}replaced?{% endblock %}
c.html
{% extends a.html %}
{% block x}new value{% endblock %}
Note:
See TracTickets
for help on using tickets.
Looks like a duplicate of #12008.