Mercurial > genshi > mirror
diff examples/tutorial/geddit/templates/comments.html @ 615:06165fee45ab trunk
GenshiTutorial: make URLs dynamic so that the app could theoretically be mounted on some other SCRIPT_NAME.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 20:12:54 +0000 |
parents | 236c351928a2 |
children | b6706f9346ac |
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/comments.html +++ b/examples/tutorial/geddit/templates/comments.html @@ -7,7 +7,7 @@ <strong>${comment.username}</strong> at ${comment.time.strftime('%M/%d/%Y %H:%m')} <blockquote>${comment.content}</blockquote> - <a href="/reply/${comment.code}/">reply</a> + <a href="${url('/reply/%s/' % comment.code)}">reply</a> <xi:include href="comments.html" py:with="comments=comment.replies" /> </li> </ul>