Subject: | Syntax error for loop_context_vars in EXPR |
When using a loop context variable ('__counter__' for example) in an
EXPR, a syntax error occurs. For example:
<TMPL_LOOP NAME="dirs">
<TMPL_IF EXPR="__counter__ > 2"><TMPL_VAR NAME="dirname"></TMPL_IF>
</TMPL_LOOP>
Will produce the followin error message:
EXPR:at pos 1: not a valid expression: syntax error
for each item in "dirs", with the following options to new():
loop_context_vars => 1,
global_vars => 1,
case_sensitive => 1
Tested on perl 5.8.7 for i686-linux-thread-multi with
HTML::Template::Pro version 0.64.
Not tested on HTML::Template::Expr, which may also have this bug.
My guess is that '_' is not a valid character for a variable in EXPR,
though it should be.