The problem is that it's good to nest tags using indentation, but there
are often a large number of levels of tags. Here's what I propose:
2-space indent. Embedded code sections on their own line, in line with
outer tags. So:
<fred>
[% IF foo %]
<bar>
[% FOREACH x = barney %]
<tr>
<td>
[% x %]
</td>
<tr>
[% END %]
[% END %]
</fred>
I also recommend we turn on PRE_CHOMP in the template initialisation;
this prevents us bloating the resulting HTML with a load of whitespace
the client is just going to ignore. Combining that with the above
indenting scheme happens to produce nicely-formatted resulting source,
as well.
Gerv