I propose allowing the passing of the keyword "unquoted" to the TAGS
directive.

TT2 searches for tags using regexes.  But if you use the TAGS
directive TT2 applies quotemeta to your custom tags - so you
can't pass in a regular expression.  I know this isn't a huge
hardship - but I would propose having the following:

    [% TAGS [<({]%  %[})>] unquoted %]

The addition is the "unquoted" keyword.  With it, TT would leave
your tags alone and ready to use as regex tokens.  Without
it TT does what it always has (applying quotemeta).  Basically, if TT2 
supports searching using regex tags, then we should make it so custom
tags can use regexes.

This feature is available in the 2.10 release of CGI::Ex::Template
that is available (or soon will be) on CPAN mirrors if anybody would
like to try it out.

I am willing to do all of the coding to have this feature
in TT2.

Paul

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

Reply via email to