I see. Is "as" used outside of this tag? I think I've seen it in other contexts.
Thanks, Rodrigo On Jun 1, 12:38 am, Julien <[EMAIL PROTECTED]> wrote: > This is not a standard syntax but the particular syntax for the tag > get_free_comment_count. Check its code in > django.contrib.comments.templatetags.DoCommentCount > > In your example, 'blog' is the application name, 'entry' the model > name to which comments are attached, 'object.id' is the id of the > particular object you're retrieving the comments for. > > What it does is it retrieves the comments and stores the number of > comments in the variable 'comment_count', which you can then use as > follows: > > There are {{ comment_count }} comment{{ comment_count|pluralize }} for > this entry. > > On Jun 1, 12:02 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > Looking through documentation for the FreeComment app, I came across > > this template syntax: > > > {% get_free_comment_count for blog.entry object.id as comment_count %} > > > Where can I find documentation for use of the "A for B C as D" syntax > > in Django templates? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---