Re: [Templates] Table formatting with out EVAL_PERL

[prev] [thread] [next] [Date index for 2004/05/06]

From: Perrin Harkins
Subject: Re: [Templates] Table formatting with out EVAL_PERL
Date: 22:13 on 06 May 2004
On Thu, 2004-05-06 at 17:29, James Lance wrote:
> I actually did look at the Table plugin.  Unless I missed something, that 
> plugin doesn't actually create HTML table layout.  It creates virtual tables.  

Right, it formats the data into a structure which you then wrap your
HTML around, all without any EVAL_PERL:

         <table>
           [% FOREACH row = table.rows %]
             <tr>
               [% FOREACH item = row %]
                 <td>[% item %]</td>
               [% END %]
             </tr>
           [% END %]
         </table>

- Perrin


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Table formatting with out EVAL_PERL
James Lance 20:13 on 06 May 2004

Re: [Templates] Table formatting with out EVAL_PERL
Perrin Harkins 20:18 on 06 May 2004

Re: [Templates] Table formatting with out EVAL_PERL
darren chamberlain 21:34 on 06 May 2004

Re: [Templates] Table formatting with out EVAL_PERL
Perrin Harkins 22:13 on 06 May 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52