[Catalyst] template comparison

Jonathan Rockway jon at jrock.us
Fri Oct 27 19:25:46 BST 2006


Max Afonov wrote:
> This just isn't true. First and foremost, why does your Mason template
> even think about considering direct usage of DBI? In a <table> tag? With
> a raw SQL query? Can't one set $c->stash->{rowset} to whatever DBIC
> returns, and then declare:
> 
> <%args>
>    $rowset
> </%args>
> 
> Suddenly, the $rowset is available in your template without you having
> to fetch it manually. Or you could just use $c directly since it's set
> up as a global variable, at least when you're inheriting from
> C::V::Mason anyway.

I'm just saying this is the sort of thing I've observed in real life.  YMMV.

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