On Wed, Oct 15, 2008 at 7:40 AM, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > Filip de Waard schrieb: >> How can I modify the Mako configuration options from within TG? Loading >> of template options seems to be hardcoded > > You're right. The current template engine configuration code in TG1 only > handles Kid and Genshi well. > >> I have attached a >> patch where I've added these extra configuration paramaters with given >> defaults. This patch also makes using Mako with Turbogears more >> intuitive, by adding a default to mako.directories that enables you to >> use Mako templates just like you would do with Kid, without having to >> edit the configuration > >> Is this sort of patch something you'd consider for inclusion in the 1.0 >> branch? Or should we wait for 2.0 instead? If not, I'll make a Trac >> ticket for the patch if needed. > > Yes, please open a ticket against TG 1.0.7 with Milestone TG 1.1beta2 > and attach the patch: > > http://docs.turbogears.org/patching_guidelines > > Chris > I discusses this over IRC with Filip and it's a really nice idea. Only two things bother me. setting default lookup to . for some reason I think this can cause some sort of security issue regarding relative paths. the fact that you have to initialize the imports to [], could this be avoided and you are still able to set it manually?
--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

