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 model and tag from context and returns cloud as a response.""" tag_list = Tag.objects.cloud_for_model(HARD_CODED_MODEL, steps=9, distribution = tagging.utils.LOGARITHMIC,filters={'removed':False}) return {'tags' : tag_list} Thanks :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.