Franco Bagnoli wrote:
> [% TRY;
> TEXT | eval;
> CATCH;
> "Caught error: $error\n";
> END
> %]
>
> does not work.
That's strange, it still works for me, even like this.
[% text = "[\% FOREACH %\]";
TRY;
text | eval;
CATCH;
"Caught error: $error\n";
END
%]
As expected, I get:
Caught error: file error - parse error - input text line 1: unexpected
end of directive
[% FOREACH %]
Maybe there is something else in your code that is causing the problem?
A
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates