Re: Send variable from view function to a templatetag

2010-03-03 Thread pjrhar...@gmail.com
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

Send variable from view function to a templatetag

2010-03-03 Thread alecs
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