encukou/test-2 — Issue #4: Fix template namespacing
Author: encukou
Created: 2011-11-03 18:45:03+00:00
State: open
Labels: urgent

**Reported by [Eevee](http://bugs.veekun.com/users/1) on 2009/06/02 22:41:54 +0000 · Migrated from [Redmine issue 36](http://bugs.veekun.com/issues/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](http://bugs.veekun.com/users/1) from 2010/10/08 08:00:34 +0000**

Assignee ⇨ —

---

**Comment by [Eevee](http://bugs.veekun.com/users/1) from 2009/08/12 22:29:23 +0000**

Difficulty: Normal