Mercurial > genshi > mirror
comparison examples/turbogears/markuptest/templates/master.html @ 4:49364e784c47 trunk
Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
author | cmlenz |
---|---|
date | Sat, 03 Jun 2006 12:31:58 +0000 |
parents | |
children | 71e8e645fe81 |
comparison
equal
deleted
inserted
replaced
3:518a8520a6e1 | 4:49364e784c47 |
---|---|
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="sitetemplate.html"><xi:fallback/></xi:include> | |
6 | |
7 <head py:match="head"> | |
8 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> | |
9 <title py:replace="''">Your title goes here</title> | |
10 ${select('*/*')} | |
11 <style type="text/css"> | |
12 #pageLogin | |
13 { | |
14 font-size: 10px; | |
15 font-family: verdana; | |
16 text-align: right; | |
17 } | |
18 </style> | |
19 </head> | |
20 | |
21 <body py:match="body"> | |
22 <div py:if="tg.config('identity.on', False) and not logging_in" | |
23 id="pageLogin"> | |
24 <span py:if="tg.identity.anonymous"> | |
25 <a href="/login">Login</a> | |
26 </span> | |
27 <span py:if="not tg.identity.anonymous"> | |
28 Welcome ${tg.identity.user.display_name}. | |
29 <a href="/logout">Logout</a> | |
30 </span> | |
31 </div> | |
32 | |
33 <div py:if="tg_flash" class="flash" py:content="tg_flash"></div> | |
34 | |
35 ${select('*')} | |
36 | |
37 <p align="center"><img src="/static/images/tg_under_the_hood.png" alt="TurboGears under the hood"/></p> | |
38 </body> | |
39 | |
40 </html> |