Em Quinta 15 Junho 2006 19:48, [EMAIL PROTECTED] escreveu: > I would like to be able to serve kid files within a folder in my > templates directory. > > So for example: > http://localhost:8080/page1 > localhost:8080/info/infopage1 > localhost:8080/info/infopage2 > > I created an "info" directory in my templates directory but cannot > figure out the correct CherryPy syntax in controllers.py to handle > this. > > Can anybody help?
In TurboGears it is a Python module. You should have an __init__.py file. Then, when indicating the template on the expose decorator you add the new level to the path. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

