On 3/31/06, Ken Perl <[EMAIL PROTECTED]> wrote: > hi there, > if anybody is using vim as editor, do you use any indenter for > template toolkit just like normal html indenter?
I generally align my TT tags flush to the left side, and indent the commands within. That keeps the excess whitespace to a minimum in the resulting HTML page (I don't turn on any of the CHOMP config options so I still have full control over the whitespace in the template). [% IF widgets -%] <ul> [% FOREACH widget IN widgets -%] <li>[% widget.name %]</li> [% END -%] </ul> [% END -%] So I don't think the vim indenters can help me much with that. I do use the TT syntax highlighter for vim though. Cheers, Cees _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
