app/projrev/views/helpers/templatetags/review_helpers.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 10 Aug 2009 01:00:32 +0530
changeset 26 97bd3c28c957
child 27 37612f295cd4
permissions -rw-r--r--
Renamed Comments to Reviews.

"""A Django template tag library containing forms helpers.
"""

__authors__ = [
  '"Madhusudan.C.S" <madhusudancs@gmail.com>',
]


from django import template

register = template.Library()


@register.inclusion_tag('projrev/templatetags/_as_comment.html')
def as_comment(review):
  """Returns the comment contexts for the template tag.
  """

  return {'comment_entity': review}