[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cgiapp] run mode switching;


Hi Russell --

> I am using CGI::Application with HTML::Template and have the 
> very general
> question of how to control run mode switching using a 
> templated approach? I have
> been hardcoding the next runmode that a submit button should invoke in
> the templates themselves, but this seems as though it will prohibit
> runmode/template
> reuse. How *should* this be done?


That's how I do it.  Just hard-code the next run-mode into the template
file.

I used to dynamically populate it via tmpl_var, but starting seeing that
as a waste of time -- the value was always known in advance and never
changed.

TTYL,

-Jesse-


--
 
Jesse Erlbaum
The Erlbaum Group
suppressed
Phone: 212-684-6161
Fax: 212-684-6226
 

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.