Mercurial > genshi > genshi-test
diff examples/tutorial/geddit/templates/index.html @ 720:f0bb2c5ea0ff experimental-newctxt
newctxt branch: Merged revisions [678:835] via svnmerge from [source:trunk].
author | cmlenz |
---|---|
date | Fri, 11 Apr 2008 08:42:11 +0000 |
parents | |
children |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/tutorial/geddit/templates/index.html @@ -0,0 +1,28 @@ +<!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>News</title> + <link rel="alternate" type="application/atom+xml" title="Geddit" + href="${url('/feed/')}" /> + </head> + <body class="index"> + <h1>News</h1> + + <ol py:if="links" class="links"> + <li py:for="link in links"> + <a href="${link.url}">${link.title}</a> + posted by ${link.username} at ${link.time.strftime('%x %X')} + <div class="info"> + <a href="${url('/info/%s/' % link.id)}"> + ${len(link.comments)} comments + </a> + </div> + </li> + </ol> + + <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> + </body> +</html>