in reply to Re^2: Catalyst WRAPPER
in thread Catalyst WRAPPER
The setting happens to be set within a Catalyst view class but it's still purely a Template setting and has nothing specifically Catalyst about it. That's rather the point of the M and the V in MVC. So the best answer to this would probably come from the TT archives/list though the Cat resources have help too, and xiaoyafeng asked there too got a couple decent answers and a pointer to http://wiki.catalystframework.org/wiki/gettingstarted/howtos/template_wrappers.
A stash variable named "wrapper" to override the view's default is a fine way to go. I recommend against subclasses per wrapper as suggested earlier. One TT view is enough considering how easy it is to customize arbitrary wrappers.
|
|---|