HTML::Template and __ODD__
- From: Colin Walls <colin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 07:48:44 +0100
I have the following code in one of my template files
<tbody id='interfaceData'>
<!-- TMPL_LOOP NAME="interfaceData" -->
<tr <!-- TMPL_IF NAME="__ODD__" -->class="alternateRow"<!-- /TMPL_IF --> >
<td><!-- TMPL_VAR NAME="interface" --></td>
<td><!-- TMPL_VAR NAME="if_type_description" --></td>
<td>
<a href='efs.cgi?rm=listInterfaceDetails;&interface_id=<!--
TMPL_VAR NAME="interface_id" -->'
class='button'>Details</a>
</td>
</tr>
<!-- /TMPL_LOOP -->
</tbody>
The loop works, all the variables insert properly. The only thing that
doesn't happen is the alternate row class style being applied to odd rows
in the table. All I get is the tag "<tr >" appearing on each row.
Could anyone clue me up as to where I am going wrong?
--
Colin Walls
Remove the pink meat to mail me
.
- Follow-Ups:
- Re: HTML::Template and __ODD__
- From: James Taylor
- Re: HTML::Template and __ODD__
- Prev by Date: Re: Calling External DLL functions in Perl using Inline
- Next by Date: Re: Calling External DLL functions in Perl using Inline
- Previous by thread: Net::FTP $ftp->message question
- Next by thread: Re: HTML::Template and __ODD__
- Index(es):