Re: [htmltmpl] Formating p-th column
Brought to you by:
samtregar
From: simran <sim...@re...> - 2003-07-07 22:53:02
|
Looks like you might need to use HTML::Template::Expr to do what you want... On Tue, 2003-07-08 at 00:43, Wojciech Pietron wrote: > Hi, > > I want to output a matrix with HTML::Template. The matrix has n rows > (n>5) and m columns (m>5). For example: > > $matrix = > [ > {one=>1, two=>2, three=>3, ..., m=>m}, > {one=>10, two=>20, three=>30, ..., m=>m*10}, > {one=>100, two=>200, three=>300, ..., m=>m*100}, > ... > ] > > Now I want to have p-th (0<p<m) column of my matrix specially formatted in the > HTML output. p is a parameter I want to dynamically pass to the subroutine > during CGI execution. > > Is there a way to create a template that lets me format p-th column? > (kind of <TMPL_IF "__counter__-P"> - do it if __counter__ minus p is > true) > > Thank you in advance, > wojtek > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users |