http://www.perlmonks.org?node_id=1057605


in reply to Re: HTML::Template with HTML::Pager
in thread HTML::Template with HTML::Pager

That's what the documentation says. I'm looking for what it doesn't seem to say.

PAGER_DATA_LIST gives you the table data with no columns names. You can add the headers in by using the column_names feature. That works just fine when using HTML::Pagers built in template but I can't get it to work when using it with HTML::Template. That's the part I'm missing.

Seems like there should be a TMPL_LOOP for the headers. Something like:

<TR> <TMPL_LOOP NAME="PAGER_DATA_HEADERS"> <TH BGCOLOR=#ffffff><TMPL_VAR NAME="HEADER"></TH> </TMPL_LOOP> </TR> <TMPL_LOOP NAME="PAGER_DATA_LIST"> <TR> <TD BGCOLOR=#ffffff><TMPL_VAR NAME="PAGER_DATA_COL_0"></TD> <TD BGCOLOR=#ffffff><TMPL_VAR NAME="PAGER_DATA_COL_1"></TD> </TR> </TMPL_LOOP>

That or the headers are passed to HTML::Template under a different array ref and HTML::Template is used to print out the headers.

Thanks for taking the time to look

-Matt