On Sat, Feb 07, 2009 at 11:07:07AM +0100, Marc Sebastian Pelzer wrote:
> Hello,
> 
> I played around with TT2 and the CGI Plugin a little bit and found a  
> strange behavior:
> 
> - I just created a brand new Catalyst application with standard  
> components
> 
> _ I created a TT template, which looks like this:
> 
> [% PROCESS header %]
> 
> [% USE CGI %]

This is in Catalyst?  Do you have a specific reason for using the CGI
plugin?  It's not needed.


> 
> [% myTest = CGI.params.test %]

    c.req.parameters.test

But it's interesting how rare that is I use that in a template.  The
controller tends to use the parameters, not the template directly.

> When I call the template for the first time with some 'test' GET  
> parameter, it will be shown correctly in the output. When I then  
> modify this GET parameter to another value and do the request, it does  
> not change and still is showing me the first value I set. Even when I  
> load the URL in a different browser, I still see the first defined  
> value for 'test' - so it's not a browser caching issue. When I run the  
> test-script "./script/my_app_test.pl" it works fine - the GET  
> parameter changes, because it's not using the Catalyst server which  
> runs all the time.

Lost me there. ;)

-- 
Bill Moseley
[email protected]
Sent from my iMutt


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to