On Sat, Feb 28, 2004 at 07:53:32AM -0800, Randal L. Schwartz wrote:
> Tony> TT doesn't seem to like the 'div' method in CGI:
> It's parsing it as a "div" math operator. Dratted simple-minded
> parser.
> Luckily, CGI.{"div"} is the same as CGI.div, as far as method calls
> go. That's the workaround.
Maybe I'm missing something, but:
#!/usr/bin/perl
use Template;
my $tt = Template->new;
$tt->process( \*DATA ) or warn $tt->error;
__DATA__
[% CGI.span({ class => "foo" }, "Foo") %]
[% CGI.("div")({ class => "foo" }, "Foo") %]
gives:
file error - parse error: input file handle line 2: unexpected token (()
[% CGI.("div")({ class => "foo" }, "Foo") %] at test-div line 5,
<DATA> line 1.
Tony
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates