app/projrev/views/helpers/templatetags/review_helpers.py
changeset 26 97bd3c28c957
child 27 37612f295cd4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/projrev/views/helpers/templatetags/review_helpers.py	Mon Aug 10 01:00:32 2009 +0530
@@ -0,0 +1,19 @@
+"""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}