On Mar 3, 4:52 pm, alecs wrote:
> How can I send variable from my view function(which renders my
> template) to a template tag library(which is {% load blah %} in this
> template? I want to make my tag cloud independent from model:
Your template tag has access to any
How can I send variable from my view function(which renders my
template) to a template tag library(which is {% load blah %} in this
template? I want to make my tag cloud independent from model:
register = Library()
@register.inclusion_tag("tags/cloud.html")
def tag_cloud(request):
"""Takes
2 matches
Mail list logo