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

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 configuratio

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 configuratio

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 > hel

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Jeff Chimene
Bill Moseley wrote: 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 configura

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'

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 (debug

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

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 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 v

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 get

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 maste

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. [% c.config.yourconfigkeyhe

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 Karma

[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: ht