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
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
2 matches
Mail list logo