Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Bill Moseley wrote: On Thu, Apr 12, 2007 at 04:18:06PM -0700, Jeff Chimene wrote: Thanks for the reply. The problem I'm trying to solve is referencing (reading) config settings from a template. I'd like to tell one or more templates that sometimes they will use frames sometimes not

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Bill Moseley
On Fri, Apr 13, 2007 at 09:34:23AM -0700, Jeff Chimene wrote: Thanks for your reply. As I indicated in an earlier message (http://www.mail-archive.com/[EMAIL PROTECTED]/msg04690.html), I've tried Dumper. I certainly get c.config values, but none of them are TT2 configuration settings. I'm

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Robert 'phaylon' Sedlacek
Jeff Chimene said: Thanks for your reply. As I indicated in an earlier message (http://www.mail-archive.com/[EMAIL PROTECTED]/msg04690.html), I've tried Dumper. I certainly get c.config values, but none of them are TT2 configuration settings. I'm using a view generated by the catalyst helper

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Hi, Thanks for the reply. I see two ways to obtain TT2 configuration values in the TT2 template: Bill Moseley wrote: [% USE foo = Class( 'Whatever::View::TT' ); USE Dumper; Dumper.dump(foo.config ) | stderr; %] and Robert 'phaylon' Sedlacek wrote: The merged configuration will

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Hi, Thanks for the reply. I see two ways to obtain TT2 configuration values in the TT2 template: Bill Moseley wrote: [% USE foo = Class( 'Whatever::View::TT' ); USE Dumper; Dumper.dump(foo.config ) | stderr; %] and Robert 'phaylon' Sedlacek wrote: The merged configuration will

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Jeff Chimene wrote: Hi, I'm not sure if this is a Catalyst question - How do I reference __PACKAGE__config settings from a Template Toolkit template? I'd like to use the config tool to set values outside the stash. Cheers, jec OK. After much research, it turns out that the correct answer

[Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Hi, I'm not sure if this is a Catalyst question - How do I reference __PACKAGE__config settings from a Template Toolkit template? I'd like to use the config tool to set values outside the stash. Cheers, jec ___ List: [EMAIL PROTECTED] Listinfo:

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Peter Karman
Jeff Chimene scribbled on 4/12/07 9:29 AM: Hi, I'm not sure if this is a Catalyst question - How do I reference __PACKAGE__config settings from a Template Toolkit template? I'd like to use the config tool to set values outside the stash. [% c.config.yourconfigkeyhere %] -- Peter

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Peter Karman wrote: Jeff Chimene scribbled on 4/12/07 9:29 AM: Hi, I'm not sure if this is a Catalyst question - How do I reference __PACKAGE__config settings from a Template Toolkit template? I'd like to use the config tool to set values outside the stash. [%

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Peter Karman
Jeff Chimene scribbled on 4/12/07 10:35 AM: and I don't see the TT2 configuration settings. When I try the similar experiment in the perl module, dump __PACKAGE__-config, the TT2 configuration settings are displayed. that's because your TT config probably isn't getting set in the master

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Peter Karman wrote: Jeff Chimene scribbled on 4/12/07 10:35 AM: and I don't see the TT2 configuration settings. When I try the similar experiment in the perl module, dump __PACKAGE__-config, the TT2 configuration settings are displayed. that's because your TT config probably isn't

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jason Kohles
On Apr 12, 2007, at 1:01 PM, Jeff Chimene wrote: The config is called in the View package (fori::View::Menu) I was hoping to set TT2 values /per package/ via the config as created by the TT2 helper. It looks like (after DEBUG = 'all') that TT2 only references the stash when it resolves

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Jeff Chimene
Jason Kohles wrote: On Apr 12, 2007, at 1:01 PM, Jeff Chimene wrote: The config is called in the View package (fori::View::Menu) I was hoping to set TT2 values /per package/ via the config as created by the TT2 helper. It looks like (after DEBUG = 'all') that TT2 only references the stash

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Bill Moseley
On Thu, Apr 12, 2007 at 04:18:06PM -0700, Jeff Chimene wrote: Thanks for the reply. The problem I'm trying to solve is referencing (reading) config settings from a template. I'd like to tell one or more templates that sometimes they will use frames sometimes not (debugging). I blithely