Re: Accessing context in templatetags

2010-07-09 Thread Miha V
Venkatraman, there was something I was missing, and just found the solution. The tag is defined as (overly simplified) @register.filter @stringfilter def cmstags(value, arg=None): return '%s' % value the value is the HTML content. And I needed another context-related parameter in the filter

Accessing context in templatetags

2010-07-09 Thread Miha V
Hi! Is there a way to access context from within templatetags? Specifically, we only load the templatetags and do the processing when the filters get registered, so we're not using the actual filters or tags {% someting %} in the templates. What we do is we replace some of the markup () with anot