Mercurial > genshi > genshi-test
comparison examples/tutorial/geddit/templates/info.html @ 615:0dc152d128f5
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 | 16b1be35c265 |
children | 5a2059ce1f0b |
comparison
equal
deleted
inserted
replaced
613:d8f961381f75 | 615:0dc152d128f5 |
---|---|
9 <body> | 9 <body> |
10 <h1>${submission.title}</h1> | 10 <h1>${submission.title}</h1> |
11 <a href="${submission.url}">${submission.url}</a><br /> | 11 <a href="${submission.url}">${submission.url}</a><br /> |
12 posted by ${submission.username} | 12 posted by ${submission.username} |
13 at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br /> | 13 at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br /> |
14 <a href="/comment/${submission.code}/">comment</a> | 14 <a href="${url('/comment/%s/' % submission.code)}">comment</a> |
15 <xi:include href="comments.html" py:with="comments=submission.comments" /> | 15 <xi:include href="comments.html" py:with="comments=submission.comments" /> |
16 </body> | 16 </body> |
17 </html> | 17 </html> |