[Catalyst] :Template() Attribute

Jonathan Rockway jon at jrock.us
Sun Jun 17 19:22:30 GMT 2007


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.

-- 
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