Re: [htmltmpl] Bug in die_on_bad_params handling
Brought to you by:
samtregar
From: Mark F. <mar...@ea...> - 2005-07-07 18:31:36
|
From: "Sam Tregar" <sa...@tr...> > The loop output code calls param() to setup each row. I see it now. The output method calls the package HTML::Template::LOOP which calls param(). It would take some work to 1) collect (in a hash) die_on_bad_param flags when the user calls param() with an array (or arrays). And then 2) use that hash to set the global value from inside HTML::Template::LOOP prior to calling param(). The overhead involved in doing that starts to diminish the cost of using the same table structure and pass empty strings when not needed. Or, using a TMPL_IF (as Roger suggested). Also, if the data associated with two loops is so large that it's costly to create a data structure for each one, that seems to indicate it should be displayed in two pages. To the extent it's difficult for the computer, I'd think it's at least that difficult for whoever's on the receiving end. :) Thanks, Mark |