Mercurial > genshi > mirror
view examples/tutorial/geddit/templates/info.html @ 621:734fbb77b579 trunk
Use system default date/time format in templates.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 19:09:28 +0000 |
parents | 756e7418e10c |
children | 6780f1b1b20d |
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>${link.title}</title> </head> <body> <h1>${link.title}</h1> <a href="${link.url}">${link.url}</a><br /> posted by ${link.username} at ${link.time.strftime('%x %X')}<br /> <a href="${url('/comment/%s/' % link.id)}">comment</a> <ul py:if="link.comments" class="comments"> <li py:for="comment in link.comments"> <strong>${comment.username}</strong> at ${comment.time.strftime('%x %X')} <blockquote>${comment.content}</blockquote> </li> </ul> </body> </html>