def greek_comment_list(): """ Allows a template-level call of filler comments. Example usage: {% greek_comment_list as comment_list %} {% for comment in comment_list %} <div id="c{{ comment.id }}"> <p>{{ comment.comment }}</p> <p>{{ comment.user_name }}</p> <p>{{ comment.submit_date|date:"F j, Y" }}</p> <p><a href="mailto:{{ comment.user_email }}"> {{ comment.user_email }} </a></p> <p><a href="{{ comment.user_url }}"> {{ comment.user_url }} </a></p> </div> {% endfor %} """ return quotables.get_comment_list()
def render(self, context): context['comment_list'] = quotables.get_comment_list() return ''
def render(self, context): context["comment_list"] = quotables.get_comment_list() return ""