Mercurial > genshi > genshi-test
comparison examples/includes/skins/default/layout.html @ 21:eca77129518a
* Include paths are now interpreted relative to the path of the including template. Closes #3.
* The filename is now included as first item in the `pos` tuple of stream events.
* Simplified the "basic" example so that it actually ''is'' basic.
* Added a more complex example using nested relative includes in [source:/trunk/examples/includes/ examples/includes].
author | cmlenz |
---|---|
date | Tue, 20 Jun 2006 13:05:37 +0000 |
parents | |
children | fec9f4897415 |
comparison
equal
deleted
inserted
replaced
20:e3d3c1d8c98a | 21:eca77129518a |
---|---|
1 <html xmlns="http://www.w3.org/1999/xhtml" | |
2 xmlns:py="http://purl.org/kid/ns#" | |
3 xmlns:xi="http://www.w3.org/2001/XInclude" | |
4 py:strip=""> | |
5 <xi:include href="../macros.html" /> | |
6 <head> | |
7 <title>Hello ${hello}</title> | |
8 <style type="text/css">@import(style.css)</style> | |
9 </head> | |
10 <body py:match="body"> | |
11 <xi:include href="header.html" /> | |
12 <div id="content"> | |
13 ${select('body/*')} | |
14 </div> | |
15 <xi:include href="footer.html" /> | |
16 </body> | |
17 </html> |