On Tue, Apr 09, 2002 at 10:06:47PM +0100, Simon McGregor wrote:
> We really like HTML rewriting, because it makes our templates very WYSIWYG. 
[...]
> How do other people do automagic HTML rewriting under TT? 

You can use the XML::Style plugin.

 [% USE xmlstyle
      table = {
        attributes = {
          border      = 0
          cellpadding = 4
          cellspacing = 1
        }
      }
 %]

 [% FILTER xmlstyle %]
 <table>
   <tr>
     <td>Foo</td> <td>Bar</td> <td>Baz</td>
   </tr>
 </table>
 [% END %]

HTH
A



Reply via email to