[htmltmpl] Avoiding resend warning when refreshing html page

2004-12-16 Thread bradford
I have Googled and searched Perlmonks for ways of refreshing a page containing a form that has just been submitted to my Perl script, and not getting the "Resend" warning from the browser. Scenario: 1) Perl script and HTML::Template supplies a page with a blank form. 2) User fills out and submit

[htmltmpl] Templates with template loops within templates

2004-12-16 Thread Eric Frazier
Hi, Great subject line huh? :) Ok we have a template. Inside that template we load in from a database a template with its own vars which makes use of a template loop. In that second template we have a var called URL_BASE which is the base path. It works inside the second template, except for with

Re: [htmltmpl] Templates with template loops within templates

2004-12-16 Thread Mathew Robertson
Hi Eric, It sounds like you have hit the dreaded "top level param, not referenced before use in template loop, so I'll just do nothing" bug... try this somewhere before your first TMPL_LOOP (say at the top of the file), in your first template: which _should_ do absolutely nothing useful/h