Re: Run a filter on path in {% extends %} tag?

2009-10-05 Thread Nan
That still requires either the view or context processor to somehow know which layout each inner template extends (the 1-column version? the 3-column version? etc.), which is something I'd prefer the inner template to know. On Oct 4, 6:42 pm, Kristaps Kūlis wrote: >

Re: Run a filter on path in {% extends %} tag?

2009-10-04 Thread Kristaps Kūlis
Hello, Just use RequestContext + context processor, which adds theme based context. Just use vars like base_template (which could be set to skin_basic_base.html by context processor). Hope you got the idea. Kristaps Kūlis What this country needs is a good five cent

Run a filter on path in {% extends %} tag?

2009-10-04 Thread ringemup
I'd like my templates to extend different templates depending on the skin the user has selected.The trouble is that the {% extends %} tag has to appear in the template file before any custom filters are loaded, so I can't run something like {% extends 'wrapper.html'|select_theme:user_theme