I discovered TuboGears yesterday and after reading the doc I tried to design a simple webapp. I want to publish a static page ! Just some html text, nothing dynamic.
After a "tg-admin quickstart" , I modified my brand new generated project like this: ---------------------------------------- welcome.kid: <!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://purl.org/kid/ns#" py:extends="'master.kid'"> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> <title>Welcome to TurboGears</title> </head> <body> <p>Your TurboGears server is running</p> </body> </html> -------------------------------------------- controllers.py import turbogears from turbogears import controllers class Root(controllers.Root): @turbogears.expose(html="newgears.templates.welcome") def index(self): pass -------------------------------------------- master.kid <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?python import sitetemplate ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="sitetemplate"> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> <title>Your title goes here</title> </head> <body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'"> <p align="center"><img src="http://www.turbogears.org/tgheader.png"/></p> <div py:if="tg_flash" class="flash" py:content="tg_flash"></div> <div py:replace="item[:]"/> </body> </html> ----------------------------------------------------- My problem: I get a blank page like this: Build time: 0.019s, Page size: 0.00KB ----------------------------------------------------- The demo works but my static page is simply ignored. I did some other tests: doing a -return "OK good" statement in the controller, writes the "OK good" value. But all the web page tags and text of the template are ignored. I am sure I missunderstood something but I can't find it ! Any clue ? Thanks in advance Arnold --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

