Skip Menu |

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

Report information
The Basics
Id: 60424
Status: resolved
Priority: 0/
Queue: Template-Tiny

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

Bug Information
Severity: Important
Broken in: 0.11
Fixed in: (no value)



Subject: only lower-case variable names are recognized
Template::Toolkit supports mixed or upper case variables (see Template::Manual::Variables). It seems that Template::Tiny doesn't: $ $tmpl->process( \'[% GSL_LIBS %]', { GSL_LIBS => '-Lfoo' } ) [% GSL_LIBS %] vs. $ $tmpl->process( \'[% gsl_libs %]', { gsl_libs => '-Lfoo' } ) -Lfoo Thanks, Diab
Upper case variables are intentionally forbidden because Template::Tiny is unable to distinguish between legitimate upper case variables like [% FOO %] and unsupported uppercase keywords like [% FOO %]