On Wednesday 06 December 2006 02:42, A. Pagaltzis wrote:
> * John Siracusa <[EMAIL PROTECTED]> [2006-12-06 03:15]:
> > My stance has always been that I don't mind "code" in templates
> > so long as the sole purpose of that code is to layout and
> > format the data.
>
> ++

I prefer to make things TT plugins for maximum reusability.  I don't want Perl 
sitting around in my templates, because it's completely unmaintainable there.   
(At least until someone writes Test::BlobOfEmbeddedPerl.)  Unit testing 
plugins is easy (and so is writing them).  Plus, the web developers can't 
mess them up (not that they want to, it's just that dreamweaver and friends 
have a tendency to blow away non-HTML).

I like the coderef-in-stash approach also, but I've never actually done it. 

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

Attachment: pgpkGpB69L28s.pgp
Description: PGP signature

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to