[Templates] Re: PROPOSAL: Add COMMENT BLOCK directive.

Robert Hicks sigzero@gmail.com
Thu, 14 Jun 2007 07:58:52 -0400


Paul Seamons wrote:
> Text::Tmpl has a COMMENT directive.  Both to
> enhance cross compatibility as well as to add features, it
> would be nice for TT to support this directive.  It would
> most likely have to be added at the TT3 release.
> 
> Template::Parser::CET and Template::Alloy support it currently.
> 
>   [% COMMENT %]
> 
>      Template section that won't be shown
>      [% var_a %]
>      [% IF foo %]Foo[% END %]
> 
>   [% END %]
> 
> Paul Seamons

Do you mean this to be something analogous to Javadoc? Otherwise there 
is already a way to comment stuff with [%# %]. What do you mean by 
"cross compatibility"?

[%#
      Template section that won't be shown
      [% var_a %]
      [% IF foo %]Foo[% END %]
%]

Robert