[Django Code] #5862: Filters are not applied in an include tag

0 views
Skip to first unread message

Django Code

unread,
Nov 2, 2007, 2:26:17 PM11/2/07
to djang...@holovaty.com, ja...@jacobian.org, django-...@googlegroups.com
#5862: Filters are not applied in an include tag
-----------------------+----------------------------------------------------
Reporter: gnuvince | Owner: nobody
Status: new | Component: Template system
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
With the extends tag, you can do the following (trivial filter used for
example purpose):


{{{
{% extends "foo/bar"|add_html_extension %}
}}}

And the filter will be applied to "foo/bar" before the call to extends. I
figured this would work with the include tag as well, but it doesn't.

{{{
{% include "foo/bar"|add_html_extension %}
}}}

Here, the filter will never be called. Could we fix this?

--
Ticket URL: <http://code.djangoproject.com/ticket/5862>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines

Django Code

unread,
Jul 18, 2008, 3:01:32 PM7/18/08
to djang...@holovaty.com, django-...@googlegroups.com
#5862: Filters are not applied in an include tag
---------------------------------------------+------------------------------
Reporter: gnuvince | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: SVN
Resolution: | Keywords: tplrf-fixed
Stage: Design decision needed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Changes (by emulbreh):

* keywords: => tplrf-fixed

Comment:

This would be fixed by the refactoring proposed in #7806.

--
Ticket URL: <http://code.djangoproject.com/ticket/5862#comment:2>

Django Code

unread,
Aug 19, 2008, 11:40:11 AM8/19/08
to djang...@holovaty.com, django-...@googlegroups.com
#5862: Filters are not applied in an include tag
---------------------------------------------+------------------------------
Reporter: gnuvince | Owner: nobody
Status: closed | Milestone:
Component: Template system | Version: SVN
Resolution: wontfix | Keywords: tplrf-fixed
Stage: Design decision needed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Changes (by mtredinnick):

* status: new => closed
* resolution: => wontfix

Comment:

No, this really isn't worth it. It's "programming in templates". Just pass
in the right value to include (in a variable).

--
Ticket URL: <http://code.djangoproject.com/ticket/5862#comment:3>
Reply all
Reply to author
Forward
0 new messages