Put templates in their own plugin-specific directories, just like static stuff. This will keep widgets from clobbering each other and remove the need for a plugin-named directory everywhere.
Not sure if I should be doing self.render('/pokemon.mako') and have self.render pick the right directory or do render('/pokedex/pokemon.mako') and override TemplateLookup to dispatch to the right plugin based on path.
Also, what to do about CSS files with the same name? Should one still clobber the other as before, or should they all be loaded in priority order? Overriding the main Spline theme seems like a pain; perhaps a single name like theme.mako should be special and get clobbered? Ehh. This might be worth adding real theme support over.
Redmine metadata:
Updated on: 2010/10/08 08:00:34 +0000
Start date: 2009/06/02
Reported by Eevee on 2009/06/02 22:41:54 +0000 · Migrated from Redmine issue 36
Put templates in their own plugin-specific directories, just like static stuff. This will keep widgets from clobbering each other and remove the need for a plugin-named directory everywhere.
Not sure if I should be doing
self.render('/pokemon.mako')
and haveself.render
pick the right directory or dorender('/pokedex/pokemon.mako')
and overrideTemplateLookup
to dispatch to the right plugin based on path.Also, what to do about CSS files with the same name? Should one still clobber the other as before, or should they all be loaded in priority order? Overriding the main Spline theme seems like a pain; perhaps a single name like
theme.mako
should be special and get clobbered? Ehh. This might be worth adding real theme support over.Comment by Eevee from 2009/08/12 22:29:23 +0000
Comment by Eevee from 2010/10/08 08:00:34 +0000