[Catalyst] Context sensitive template locations
Johan Lindström
johanl at DarSerMan.com
Mon Nov 21 00:40:06 CET 2005
Maypole has this template hierarchy where you can have a directory tree
with templates that match your class hierarchy. Like:
./edit.tt
./Foo/edit.tt
So if you ask for template "edit.tt" from class (or Controller in our case)
Foo, you get ./Foo/edit.tt, but if you're in Bar, you get ./edit.tt .
Is there something similar in Catalyst?
If not, what would the easiest way to deal with it be? Subclass
Catalyst::View::TT and override the sub process and unshift to the
include_path?
/J
More information about the Catalyst
mailing list