On Aug 17, 2006, at 12:17 AM, Ethan Fremen wrote: > > On 8/16/06, Bernardo Torres <[EMAIL PROTECTED]> wrote: >> how do I have a multiple template path, like one default and other >> for >> fallback? And making it in a per-controller basis. > > My suggestion is to use Markup ( http://markup.edgewall.org ) in lieu > of kid and then having your templates import the right thing according > to what you pass into them. > > The rigid mapping of 1 view template -> controller is, imo, one of the > biggest failings of turbogears. If you could chain or nest controllers > it would make more sense.
It's not exactly one view template -> controller. You can cause different templates to be used by returning "tg_template" in the dict. Additionally, you can have multiple @expose decorators that specify different templates to use under different circumstances. Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

