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

Re: [cgiapp] ANN: Plugin for HTML::Template::Compiled


On 12/8/05, Jesse Erlbaum <suppressed> wrote:

- die_on_bad_params has been removed (yay!)

Does this mean that you can pass any bad param into the template and it doesn't die? For me, this is the template equivalent of "use strict".

Sometimes, a "bad" param isn't bad so much as unused. For example, you
might have a standard set of params that gets passed to everything.
One of those values might be used in all templates but one. What
should be done there?

I always turn off die_on_bad_param too, since it "breaks" the separation between code and template that I want to achieve. What if the design of the page changes in such a way that a parameter is no longer needed? The designer shouldn't have to ask the programmer to remove a parameter just to keep the program working.

I always figure that the program should be able to throw any parameter at the template that it wants, and the designer can choose what should be displayed.

Oh well, TMTOWTDI, as always....

Jaclyn

---------------------------------------------------------------------
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.