annotate examples/turbogears/genshitest/templates/welcome.html @ 601:59fbd7586454 trunk

Simplify implementation of `py:with` directive by compiling to a `Suite`, instead of manually breaking up the statement and compiling each part to an `Expression`. Also, the first line of code in a `Suite` is now stored as the "function name" of the bytecode, so that it shows up in tracebacks.
author cmlenz
date Wed, 22 Aug 2007 21:50:46 +0000
parents 2755b06148b3
children
rev   line source
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
49364e784c47 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.
cmlenz
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
4 xmlns:xi="http://www.w3.org/2001/XInclude"
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
5 xmlns:py="http://genshi.edgewall.org/">
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
6 <xi:include href="master.html" />
4
49364e784c47 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.
cmlenz
parents:
diff changeset
7
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
8 <head>
4
49364e784c47 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.
cmlenz
parents:
diff changeset
9 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
49364e784c47 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.
cmlenz
parents:
diff changeset
10 <title>Welcome to TurboGears</title>
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
11 </head>
4
49364e784c47 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.
cmlenz
parents:
diff changeset
12
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
13 <body>
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
14 <p>Congratulations, your TurboGears application is running as of
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
15 <span py:replace="now">now</span>.</p>
4
49364e784c47 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.
cmlenz
parents:
diff changeset
16
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
17 <h2>Using Genshi in TurboGears</h2>
4
49364e784c47 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.
cmlenz
parents:
diff changeset
18
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
19 <p>
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
20 Please see the online
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
21 <a href="http://genshi.edgewall.org/wiki/Documentation">documentation</a>
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
22 for general information on Genshi.
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
23 </p>
4
49364e784c47 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.
cmlenz
parents:
diff changeset
24
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
25 <p>Here's an example for using a TurboGears widget in a Genshi template:</p>
110
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 80
diff changeset
26 ${ET(widget.display())}
64ff134868c4 update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 80
diff changeset
27
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
28 <p>
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
29 And here's a <a href="plain">link</a> to the output of a plain-text
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
30 template.
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
31 </p>
265
26bebcc26da8 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.
cmlenz
parents: 230
diff changeset
32
441
2755b06148b3 Fix undefined error in TurboGears example app, and some cleanup.
cmlenz
parents: 265
diff changeset
33 </body>
4
49364e784c47 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.
cmlenz
parents:
diff changeset
34 </html>
Copyright (C) 2012-2017 Edgewall Software