Mercurial > genshi > genshi-test
view 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 |
line wrap: on
line source
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:py="http://genshi.edgewall.org/"> <xi:include href="layout.html" /> <head> <title>${submission.title}</title> </head> <body> <h1>${submission.title}</h1> <a href="${submission.url}">${submission.url}</a><br /> posted by ${submission.username} at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br /> <a href="${url('/comment/%s/' % submission.code)}">comment</a> <xi:include href="comments.html" py:with="comments=submission.comments" /> </body> </html>