Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 25040
Status: rejected
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: rdrousies [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 2.15
  • 2.18
Fixed in: (no value)



Subject: List declaration inside a META directive
Hello, It seems one cannot declare a list inside a META directive, TT breaks with an 'unexpected token ([)' error. (tried with 2.15 and 2.18) To reproduce: perl -MTemplate -e 'my $t = Template->new; $t->process("foo.tt2") || die($t->error)' In foo.tt2: --<snip>-- [% META foo = [ 'bar' ] %] --</snip>-- -> file error - parse error - foo.tt2 line 1: unexpected token ([) Regards, Renaud Drousies
On Mon Feb 19 15:57:00 2007, RDROUSIES wrote: Show quoted text
> It seems one cannot declare a list inside a META directive, TT breaks > with an 'unexpected token ([)' error. (tried with 2.15 and 2.18)
That's the correct behaviour (even if it is less than useful). It's a limitation of the parser that we're using in TT2. It'll be made better in TT3.