annotate examples/turbogears/genshitest/templates/sitetemplate.html @ 265:26bebcc26da8 trunk

Split up the plugin implementation into two classes: one for markup templates (?genshi-markup? or just ?genshi?) and one for text templates (?genshi-text?). Also added an example for plain-text templating to the TurboGears example app.
author cmlenz
date Fri, 22 Sep 2006 17:22:53 +0000
parents cf4a125b44a1
children
rev   line source
110
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml"
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 110
diff changeset
3 xmlns:py="http://genshi.edgewall.org/"
110
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
4 xmlns:xi="http://www.w3.org/2001/XInclude"
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
5 py:strip="">
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
6 <head py:match="head" py:attrs="select('@*')">
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
7 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
8 <title py:replace="''">Your title goes here</title>
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
9 <link py:for="css in tg_css" py:replace="ET(css.display())" />
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
10 <link py:for="js in tg_js_head" py:replace="ET(js.display())" />
247
cf4a125b44a1 the TG <body> match templates should also select text nodes to output
mgood
parents: 230
diff changeset
11 <meta py:replace="select('*')" />
110
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
12 </head>
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
13 <body py:match="body" py:attrs="select('@*')">
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
14 <div py:for="js in tg_js_bodytop" py:replace="ET(js.display())" />
247
cf4a125b44a1 the TG <body> match templates should also select text nodes to output
mgood
parents: 230
diff changeset
15 <div py:replace="select('*|text()')" />
110
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
16 <div py:for="js in tg_js_bodybottom" py:replace="ET(js.display())" />
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
17 </body>
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
diff changeset
18 </html>
Copyright (C) 2012-2017 Edgewall Software