veekun / spline

core of veekun.com: web thing with plugins
http://bugs.veekun.com/projects/spline
MIT License
9 stars 3 forks source link

Fix template namespacing #5

Open encukou opened 12 years ago

encukou commented 12 years ago

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 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

Comment by Eevee from 2009/08/12 22:29:23 +0000

Difficulty: Normal

Comment by Eevee from 2010/10/08 08:00:34 +0000

Assignee ⇨ —