view examples/tutorial/geddit/templates/comments.html @ 616:8ada29c99c0d trunk

GenshiTutorial: use form filler on comment/reply views.
author cmlenz
date Wed, 29 Aug 2007 20:51:39 +0000
parents 06165fee45ab
children b6706f9346ac
line wrap: on
line source
<!DOCTYPE html>
<ul xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:py="http://genshi.edgewall.org/"
    py:if="comments" class="comments">
  <li py:for="comment in comments">
    <strong>${comment.username}</strong>
    at ${comment.time.strftime('%M/%d/%Y %H:%m')}
    <blockquote>${comment.content}</blockquote>
    <a href="${url('/reply/%s/' % comment.code)}">reply</a>
    <xi:include href="comments.html" py:with="comments=comment.replies" />
  </li>
</ul>
Copyright (C) 2012-2017 Edgewall Software