Hi,
On Nov 3, 2006, at 2:29 PM, A. Pagaltzis wrote:
* Perrin Harkins <[EMAIL PROTECTED]> [2006-11-01 19:35]:
On Wed, 2006-11-01 at 17:17 +0100, A. Pagaltzis wrote:
I think the additional abstraction for data access that TT
provides usually makes for simpler templates and avoids needing
to code a lot of repetitive data copying in perl, and the
plugin support makes it a lot easier to deal with formatting
dates and numbers and handling multi-column lists.
I wonder occasionally if I’d miss the abstraction if I were
writing expressions in Perl, but still, I like it. It’s one of
the things I said are nice about TT2.
I know I wouldn’t miss plugins. If expressions were Perl, I’d
simply be using modules. Plugins are just an artifact of having
an extensive mini language.
I use plugins for display bussiness rules. For each field that needs
a special formating need in terms of display, I use a [% field |
filter %]
The filter assures the proper formatting.
It works pretty well, and my models and controllers don't need to
bother with something that is more view-related.
I wonder if there is a better way though.
Best regards,
--
Pedro Melo
JID: xmpp:[EMAIL PROTECTED]
_______________________________________________
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/