Opened 16 years ago

Closed 16 years ago

#5862 closed (wontfix)

Filters are not applied in an include tag

Reported by: Vincent Foley Owned by: nobody
Component: Template system Version: dev
Severity: Keywords: tplrf-fixed
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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?

Change History (3)

comment:1 by Chris Beaven, 16 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Johannes Dollinger, 16 years ago

Keywords: tplrf-fixed added

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

comment:3 by Malcolm Tredinnick, 16 years ago

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top