As is written into templatetags directly. It is a fairly easy process
and it helps with context variables (otherwise how would you access
comment_count in the template).
Look here for how to write a custom tag:
http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-t
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.temp
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
pa
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?
--~--~-~--~~~-
4 matches
Mail list logo