Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] How many spaces of indentation in templates?

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: "Stefan Hornburg (Racke)" <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] How many spaces of indentation in templates?
  • Date: Fri, 11 Jan 2019 10:19:13 +0100

On 1/11/19 10:14 AM, Luc Didry wrote:
> vendredi 11 janvier 2019, 09:49:23 CET IKEDA Soji wrote:
>> Hi,
>>
>> I’m using 2 spaces for both tt2 elements and HTML elements (and there are
>> some exception rules when HTML is enclosed by tt2, ...a bit hard to
>> describe).
>>
>> If another method was agreed, I won’t stick to my method.
>>
>
> I think I see what you mean by "when HTML is enclosed by tt2". Is it
> that?
>
> <div>
> [% IF %]
> <p>foobarbaz</p>
> [% END%]
> </div>
>
> Personally, I would do
>
> <div>
> [% IF %]
> <p>foobarbaz</p>
> [% END%]
> </div>
>
> It's easier to see the tt2 block content, specially when there is a
> lot of nested tt2.
>

I also like the second solution better.

Regards
Racke

--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.



Archive powered by MHonArc 2.6.19+.

Top of Page