Re: [htmltmpl] Re: TMPL_DEF (Was: Patches for HTML-Template-2.5.tar.gz)
Brought to you by:
samtregar
|
From: Kenny P. <py...@ve...> - 2002-07-30 18:50:53
|
Andrew,
Without being able to set a value in a template, you have to change
backend scripts to enact this change, even though nothing in those
templates needs to change. If there is a customer feedback script called
feedback.cgi, your CGI programmer needs to care about the site layout and
design to pass in a variable.
You will run into similar problems all the time if you design your app
using an MVC style.
Does this help shed some light on why this functionality is desireable?
It sounds like you are changing the functionality of the
application when you make a change to the feedback template.
A simple mail-form script would not need changed when you update
the html form template if it is written correctly. If you are using a
mail-form script and you have to update your "backend" then I suggest
you re-write your mail script to be dynamic based on what is in the CGI
object. If you are familiar with the associate feature in
HTML::Template you will not have to worry about the way the form data is
passed from form to form unless you have to act on the input. In that
case, of course you would need to change the backend to work in the new
way.
Do you use CGI::Application? You do not need to worry about the
layout of the template nor do you want to set values in the template.
You have to break your paradigm. I highly suggest looking into
CGI::App. It is a great way to use HTML::Template and would help you
gain more control over your apps.
Humbly,
Andrew
----------------------------------------------------------------------
Andrew Ho http://www.tellme.com/ an...@te...
Engineer in...@te... Voice 650-930-9062
Tellme Networks, Inc. 1-800-555-TELL Fax 650-930-9101
----------------------------------------------------------------------
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Html-template-users mailing list
Htm...@li...
https://lists.sourceforge.net/lists/listinfo/html-template-users
Thanks,
Kenny Pyatt
President
Venzia
www.venzia.com
|