[Catalyst] Beginner question: View directory

Dave Rolsky autarch at urth.org
Thu Nov 8 06:08:00 GMT 2007

On Thu, 8 Nov 2007, Kieren Diment wrote:

> Good call, my mistake.  Goes to show that there's not usually much (or an=
y) =

> extra stuff that needs to be done in the View class.  I was actually =

> struggling to think of code related things  (rather than config) which  y=
ou =

> might want to put in there.   Personally I've always munged headers in th=
e =

> sub end : ActionClass(=92RenderView=92) {} subs (see perldoc =

> Catalyst::Action::RenderView for details).

I have a few bits of code in my view class, but not much.

For the Mason view, I had subclass new() and chown() all the files created =

by the Mason Interp object to make things happy under mod_perl. Mason has =

this built-in to its mod_perl integration, but that doesn't get used with =


I also have a method has_template_for_path() which does what it says. I =

call this from some controller auto() methods where the URI in question is =

basically static content that doesn't need a separate controller method.


VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog

More information about the Catalyst mailing list