[Catalyst] Best Practices
Matt S Trout
dbix-class at trout.me.uk
Mon Feb 6 01:57:06 CET 2006
On Mon, Feb 06, 2006 at 11:41:14AM +1100, Kieren Diment wrote:
> There's some useful information on the wiki about best practices. I
> particularly like this one:
>
> MyApp::View::TT->config(
> CATALYST_VAR => 'Catalyst',
> # ...
> );
>
> to enforce [% Catalyst.config.frobnicator %] rather than just [% frobnicator %].
>
> Shouldn't this be the default - i.e. auto generated in catalyst.pl Myapp?
The default is 'c' - i.e. [% c.config.frobnicator %]
This is used for consistency with the $c convention in code, and for brevity
in templates. I think these are both excellent reasons for keeping it the
way it is.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list