Mercurial > genshi > genshi-test
diff examples/tutorial/geddit/templates/info.html @ 611:16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 17:51:45 +0000 |
parents | |
children | 0dc152d128f5 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/tutorial/geddit/templates/info.html @@ -0,0 +1,17 @@ +<!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="/comment/${submission.code}/">comment</a> + <xi:include href="comments.html" py:with="comments=submission.comments" /> + </body> +</html>