Re: semi-colon at the end hurt anything?

Marco Palma <marcoapalma-/[email protected]> Mon, 22 Apr 2013 13:36:54 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
I'm gonna go with "inconsequential".  I actually find myself doing templates like this:

[%-
  my_list = [....some list of things...];

  FOR i IN my_list;
    IF my_list.$i == 'A';
      'found A' _ loop.index _ '<br>'; 
    ELSE;
      'found A' _ loop.index _ '<br>';

    END;
  END;

-%] 

Guess my view of templating has been tainted by many a moon spent writing PHP.



>________________________________
> From: Summer <crazysummer2004-/[email protected]>
>To: "[email protected]" <[email protected]> 
>Sent: Monday, April 22, 2013 12:58 PM
>Subject: [Templates] semi-colon at the end hurt anything?
> 
>
>
>
>hello -- just want to verify, but I would think that it is of no consequence.
>
>
> [% IF something; %]
> //do something
> [% ELSIF something-else; %]
>
>
> [% END %]
>
>
>or
>
>
> [% IF something && somethingelse; %]
>
>
>";" <--- is that bad practice or inconsequential?
>
>
>thanks,
>summer
>
>_______________________________________________
>templates mailing list
>[email protected]
>http://mail.template-toolkit.org/mailman/listinfo/templates
>
>
>

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates