On Mon, Aug 24, 2009 at 5:43 PM, Jonathan Vanasco<[email protected]> wrote: > > i have a different approach... > > i keep all the shared templates in its own repository, which is put > into each project as an svn:external > > the projects then use a standard config file to either use the shared > template or an override in their own directory structure > > i could have used a file exists check, but i felt a config option > would be more extensible
A Third approach which is a little more insane is to steal the dotted notation file from TG2 [1]. This will allow you to use imports like in genshi that use packages instead of paths. So all your templates are in one package and you can import them from anywhere. We are currently using this in one project with similar characteristics. A main application and several subapplications for the different clients of the main application. [1] http://hg.turbogears.org/tg-21/src/tip/tg/dottednamesupport.py > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
