There's probably an easy way to do this, but :) ... what I did was
create a macro (in my global macros.tt file):

[% MACRO equals_ignore_case_(a, b)
   BLOCK;
      a = a | upper;
      b = b | upper;
      a == b;
   END;
 %]

This works when I call it from within the macros file, but not from
elsewhere. In other words, this test works sometimes and not others:

[% a = 'test' %]
[% b = 'TEST' %]
[% IF equals_ignore_case_(a,b) %]
   MATCHES
[% ELSE %]
   DOESN'T MATCH
[% END %]

--
==========================
2People Blog: http://2-people.blogspot.com/
2People site: http://www.2people.org

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

Reply via email to