Re: [Catalyst] Mason configuration in YAML

2007-03-13 Thread Carl Vincent
Following up from a mail way-back-when: >> -Original Message- >> From: Kevin Old [mailto:kevinold at gmail.com] >> Sent: Thursday, December 07, 2006 8:37 PM >> To: The elegant MVC web framework >> Subject: Re: [Catalyst] Mason configuration in YAML >>

Re: [Catalyst] Mason configuration in YAML

2006-12-08 Thread Brandon Black
On 12/8/06, Kevin Old <[EMAIL PROTECTED]> wrote: On 12/8/06, Jon Warbrick <[EMAIL PROTECTED]> wrote: > On Thu, 7 Dec 2006, Kevin Old wrote: > > > ... > > then in Mason.pm you can use it like this: > > package MyApp::View::Mason; > > > > use base 'Catalyst::View::Mason'; > > > > __ PACKAGE__->conf

Re: [Catalyst] Mason configuration in YAML

2006-12-08 Thread Kevin Old
On 12/8/06, Jon Warbrick <[EMAIL PROTECTED]> wrote: On Thu, 7 Dec 2006, Kevin Old wrote: > ... > then in Mason.pm you can use it like this: > package MyApp::View::Mason; > > use base 'Catalyst::View::Mason'; > > __ PACKAGE__->config->{DEBUG} = 'all'; > __ PACKAGE__->config->{comp_root} = $c->con

Re: [Catalyst] Mason configuration in YAML

2006-12-08 Thread Jon Warbrick
On Thu, 7 Dec 2006, Kevin Old wrote: ... then in Mason.pm you can use it like this: package MyApp::View::Mason; use base 'Catalyst::View::Mason'; __ PACKAGE__->config->{DEBUG} = 'all'; __ PACKAGE__->config->{comp_root} = $c->config->{comp_root}; __ PACKAGE__->config->{data_dir} = $c->config->{

RE: [Catalyst] Mason configuration in YAML

2006-12-07 Thread Marc Logghe
> -Original Message- > From: Kevin Old [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 07, 2006 8:37 PM > To: The elegant MVC web framework > Subject: Re: [Catalyst] Mason configuration in YAML > > Hi Mark, > > I'm pretty sure you need to do it l

Re: [Catalyst] Mason configuration in YAML

2006-12-07 Thread Kevin Old
Hi Mark, I'm pretty sure you need to do it like this: In your YAML file specify comp_root and data_dir: comp_root: __path_to(mason/root)__ data_dir: __path_to(mason/data)__ then in Mason.pm you can use it like this: package MyApp::View::Mason; use base 'Catalyst::View::Mason'; __PACKAGE__->c