Mercurial > genshi > genshi-test
diff 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 |
line wrap: on
line diff
--- a/examples/turbogears/genshitest/templates/welcome.html +++ b/examples/turbogears/genshitest/templates/welcome.html @@ -1,39 +1,34 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" - xmlns:py="http://genshi.edgewall.org/" - xmlns:xi="http://www.w3.org/2001/XInclude"> -<xi:include href="master.html" /> + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:py="http://genshi.edgewall.org/"> + <xi:include href="master.html" /> -<head> + <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> <title>Welcome to TurboGears</title> -</head> - -<body> - <p>Congratulations, your TurboGears application is running as of <span py:replace="now">now</span>.</p> - - <h2>Are you ready to Gear Up?</h2> - - <p>Take the following steps to dive right in:</p> + </head> - <ol> - <li>Edit your project's model.py to create SQLObjects representing the data you're working with</li> - <li>Edit your dev.cfg file to point to the database you'll be using</li> - <li>Run "<code>tg-admin sql create</code>" to create the tables in the database</li> - <li>Edit controllers.py to add the functionality to your webapp</li> - <li>Change the master.kid template to have the headers and footers for your application.</li> - <li>Change welcome.kid (this template) or create a new one to display your data</li> - <li>Repeat steps 4-6 until done.</li> - <li><b>Profit!</b></li> - </ol> + <body> + <p>Congratulations, your TurboGears application is running as of + <span py:replace="now">now</span>.</p> - <p>If you haven't already, you might check out some of the <a href="http://www.turbogears.org/docs/" >documentation</a>.</p> + <h2>Using Genshi in TurboGears</h2> - <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> + <p> + Please see the online + <a href="http://genshi.edgewall.org/wiki/Documentation">documentation</a> + for general information on Genshi. + </p> + <p>Here's an example for using a TurboGears widget in a Genshi template:</p> ${ET(widget.display())} - <p>Here's a <a href="plain">link</a> to the output of a plain-text template.</p> + <p> + And here's a <a href="plain">link</a> to the output of a plain-text + template. + </p> -</body> + </body> </html>