Re: Weird parse error, can't locate it!!! help!

Darren Chamberlain <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CAAKoLZkg4FEMmAOk2t5RBM6EP51YT8Eq0ftL6Dxkbvdj1tm4xQ@mail.gmail.com>
On Thu, Apr 19, 2012 at 02:50, Summer <crazysummer2004-/[email protected]> wrote:
> Template error: file error - parse error -
> home/section/data/generate.tt line 158: unexpected token (.)
>   [% $.trim %]
>
> This tt file has alot of TT code, obviously, and alot of JS. The ODD thing is that
> there is some jQuery I am using that is using $.trim, but no TT. Yet, the error parsed
> out like it is a TT declaration [% $.trim %] <-- weird.

Are you using INTERPOLATE ? That would make Template::Parser choke on
the $. token.

--
Darren Chamberlain <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.