in reply to Loop Context Style with HTML::Template
option #2 is imho the best way to do it. Who said that it must all stand in one line?
<TD class= <TMPL_IF name="__ODD__">"odd" <TMPL_ELSE>"even" </TMPL_IF> > [download]