Mercurial > genshi > genshi-test
view examples/tutorial/geddit/templates/index.html @ 619:71d3edd302ae
GenshiTutorial: various updates to sync with wiki page.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 14:19:59 +0000 |
parents | 5a2059ce1f0b |
children | d218020fb92a |
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>News</title> </head> <body> <h1>News</h1> <p><a href="${url('/submit/')}">Submit new link</a></p> <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('%m/%d/%Y %H:%M')} <div class="info"> <a href="${url('/info/%s/' % link.id)}"> ${len(link.comments)} comments </a> </div> </li> </ol> </body> </html>