Mercurial > genshi > genshi-test
view examples/tutorial/geddit/templates/layout.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 source
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/"> <py:match path="head" once="true"> <head py:attrs="select('@*')"> <title py:with="title = list(select('title/text()'))"> geddit<py:if test="title">: ${title}</py:if> </title> <link rel="stylesheet" href="/media/layout.css" type="text/css" /> <script type="text/javascript" src="/media/jquery.js"></script> ${select('*[local-name()!="title"]')} </head> </py:match> <py:match path="body" once="true"> <body py:attrs="select('@*')"><div id="wrap"> <div id="header"> <a href="/"><img src="/media/logo.gif" width="201" height="79" alt="geddit?" /></a> </div> <div id="content"> ${select('*|text()')} </div> <div id="footer"> <hr /> <p class="legalese">© 2007 Edgewall Software</p> </div> </div></body> </py:match> </html>