xslate/p5-Text-Xslate — Issue #52: Strange scope by IF
Author: tokubass
Created: 2011-12-18 07:00:11+00:00
State: open

Is the following a result as expected?
------- pattern 1 ---------------------
[% IF 1 %]
[% aaa = 'AAA' %]
[% aaa %] # AAA
[% END %]

[% aaa %] # undef
------- pattern 2 -----------------------
[% aaa = '' %]
[% IF 1 %]
[% aaa = 'AAA' %]
[% aaa %] # AAA
[% END %]

[% aaa %] # AAA