[Catalyst] :Template() Attribute

Jonathan Rockway jon at jrock.us
Tue Jun 19 10:12:33 GMT 2007


On Sunday 17 June 2007 01:22:30 pm Jonathan Rockway wrote:
> On Sunday 17 June 2007 01:02:52 pm Christopher H. Laco wrote:
> > Well, if we're throwing things in the ring...
> >
> > C::View::Templated
> >
> > ->template()
> >
> > And some forms of:
> >
> > ->template_paths(\@)
>
> I like this.  Should we put this in a separate package, or right in
> C-Runtime?
>
> Incidentally, you could do $c->view->template('...')* instead of
> $c->stash->{template}, which looks pretty nice.
>
> * or $c->view('View::TT')->template('...') if you don't like default_view.

Replying to myself... I am also going to add a process method that calls 
render.  That way, as a template view implementor, you only need to make 
render work, and the rest will be taken care of for you.  Convenient.

Anything else I am forgetting?

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;



More information about the Catalyst mailing list