Do you know where your variables are? | |
PerlMonks |
Re: A question regarding HTML::Template, tables, and loopsby gryphon (Abbot) |
on Sep 02, 2002 at 05:57 UTC ( [id://194531]=note: print w/replies, xml ) | Need Help?? |
Greetings atcroft, One of the things I've noticed about HTML tables is that in some browsers you have to specify blank cells with " " or else something yucky looking gets put into the final display. So the code of my attempt to answer your question inserts blank cell data for whatever remaining cells are in the table.
Also, I really like letting the brilliance of the module handle what data goes where in what type of table. I lean away from mucking around with the template itself (i.e. inserting "break" variables to set the rows) and rather prefer to let the module setup the table via the data. Gryphon's personal rule of HTML::Template: Put as much of the "thinking" into the Perl as possible leaving a simpler template.
General aside: When I was first playing around with HTML::Template, I was really annoyed with having to deal with all the references required. However, once I got used to it, I've come to realize that the elegance and brilliance of the module is all about putting all the "thinking" in your Perl and only the HTML in the templates. I'm amazed at what the author's done just about every time I use it. gryphon
In Section
Seekers of Perl Wisdom
|
|