[Catalyst] filling fields through FromBuilder dynamically

2007-04-13 Thread rahed
Hello, I render forms in the TT template with [% FormBuilder.render %]. The forms are defined in file.fb. I would like to dynamically change one of the predefined values (date), something like this: [% FOREACH field IN formbuilder.fields %] [% IF field.name == 'my_name' %] [% field.value

[Catalyst] Re: filling fields through FromBuilder dynamically

2007-04-13 Thread rahed
On 4/13/07, rahed [EMAIL PROTECTED] wrote: Hello, I render forms in the TT template with [% FormBuilder.render %]. The forms are defined in file.fb. I would like to dynamically change one of the predefined values I found I can trim the form in the controller like this

[Catalyst] Re: Handling slow uploads externally

2007-04-13 Thread A. Pagaltzis
* Perrin Harkins [EMAIL PROTECTED] [2007-04-12 23:20]: I've seen people mention nginx, pound, and pen. I also just ran across Varnish: * http://varnish.projects.linpro.no/ Varnish is a state-of-the-art, high-performance HTTP accelerator. Varnish is targeted primarily at the FreeBSD 6 and

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] Re: HOWTO reference config settings from template

2007-04-13 Thread A. Pagaltzis
* Jeff Chimene [EMAIL PROTECTED] [2007-04-13 19:20]: Where is the class method documented? http://search.cpan.org/perldoc/Template::Plugin::Class ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable