[Catalyst] Best Practices
Kieren Diment
diment at gmail.com
Mon Feb 6 02:09:59 CET 2006
Cheers. Wiki ammended to be clearer on this.
On 06/02/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> 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.plMyapp?
>
> 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/ +
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060206/f6b3c6a8/attachment.htm
More information about the Catalyst
mailing list