Tony Bowden wrote:

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") %]



Maybe try it with braces {} rather than parens ()? CGI.{"div"}() rather than CGI.("div")()

--mark

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

Reply via email to