Mercurial > genshi > genshi-test
comparison examples/turbogears/genshitest/templates/welcome.html @ 441:9d3f275953b5
Fix undefined error in TurboGears example app, and some cleanup.
author | cmlenz |
---|---|
date | Wed, 11 Apr 2007 11:02:02 +0000 |
parents | 0f2bc982a2b9 |
children |
comparison
equal
deleted
inserted
replaced
440:777143e274ed | 441:9d3f275953b5 |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
2 <html xmlns="http://www.w3.org/1999/xhtml" | 3 <html xmlns="http://www.w3.org/1999/xhtml" |
3 xmlns:py="http://genshi.edgewall.org/" | 4 xmlns:xi="http://www.w3.org/2001/XInclude" |
4 xmlns:xi="http://www.w3.org/2001/XInclude"> | 5 xmlns:py="http://genshi.edgewall.org/"> |
5 <xi:include href="master.html" /> | 6 <xi:include href="master.html" /> |
6 | 7 |
7 <head> | 8 <head> |
8 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> | 9 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> |
9 <title>Welcome to TurboGears</title> | 10 <title>Welcome to TurboGears</title> |
10 </head> | 11 </head> |
11 | 12 |
12 <body> | 13 <body> |
13 <p>Congratulations, your TurboGears application is running as of <span py:replace="now">now</span>.</p> | 14 <p>Congratulations, your TurboGears application is running as of |
15 <span py:replace="now">now</span>.</p> | |
14 | 16 |
15 <h2>Are you ready to Gear Up?</h2> | 17 <h2>Using Genshi in TurboGears</h2> |
16 | 18 |
17 <p>Take the following steps to dive right in:</p> | 19 <p> |
20 Please see the online | |
21 <a href="http://genshi.edgewall.org/wiki/Documentation">documentation</a> | |
22 for general information on Genshi. | |
23 </p> | |
18 | 24 |
19 <ol> | 25 <p>Here's an example for using a TurboGears widget in a Genshi template:</p> |
20 <li>Edit your project's model.py to create SQLObjects representing the data you're working with</li> | |
21 <li>Edit your dev.cfg file to point to the database you'll be using</li> | |
22 <li>Run "<code>tg-admin sql create</code>" to create the tables in the database</li> | |
23 <li>Edit controllers.py to add the functionality to your webapp</li> | |
24 <li>Change the master.kid template to have the headers and footers for your application.</li> | |
25 <li>Change welcome.kid (this template) or create a new one to display your data</li> | |
26 <li>Repeat steps 4-6 until done.</li> | |
27 <li><b>Profit!</b></li> | |
28 </ol> | |
29 | |
30 <p>If you haven't already, you might check out some of the <a href="http://www.turbogears.org/docs/" >documentation</a>.</p> | |
31 | |
32 <p>Thanks for using TurboGears! See you on the <a href="http://groups.google.com/group/turbogears" >mailing list</a> and the "turbogears" channel on irc.freenode.org!</p> | |
33 | |
34 ${ET(widget.display())} | 26 ${ET(widget.display())} |
35 | 27 |
36 <p>Here's a <a href="plain">link</a> to the output of a plain-text template.</p> | 28 <p> |
29 And here's a <a href="plain">link</a> to the output of a plain-text | |
30 template. | |
31 </p> | |
37 | 32 |
38 </body> | 33 </body> |
39 </html> | 34 </html> |