Mercurial > genshi > mirror
diff examples/tutorial/geddit/templates/comments.html @ 611:236c351928a2 trunk
Add current code for GenshiTutorial to the `examples` directory.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 17:51:45 +0000 |
parents | |
children | 06165fee45ab |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/tutorial/geddit/templates/comments.html @@ -0,0 +1,13 @@ +<!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="/reply/${comment.code}/">reply</a> + <xi:include href="comments.html" py:with="comments=comment.replies" /> + </li> +</ul>