@register.inclusion_tag('zinnia/tags/dummy.html', takes_context=True)
def get_tag_cloud(context, steps=6, min_count=None, template='zinnia/tags/tag_cloud.html'):
 tags = Tag.objects.usage_for_queryset(Entry.published.all(), counts=True, min_count=min_count)
 return {'template': template, 'tags': calculate_cloud(tags, steps), 'context_tag': context.get('tag')}

@ register . inclusion_tag ( 'zinnia/tags/dummy.html' , takes_context = True ) def get_tag_cloud ( context , steps = 6 , min_count = None , template = 'zinnia/tags/tag_cloud.html' ) : tags = Tag . objects . usage_for_queryset ( Entry . published . all ( ) , counts = True , min_count = min_count ) return { 'template' : template , 'tags' : calculate_cloud ( tags , steps ) , 'context_tag' : context . get ( 'tag' ) }
return a cloud of published tags .