xslate / p5-Text-Xslate

Scalable template engine for Perl5
https://metacpan.org/release/Text-Xslate
Other
121 stars 47 forks source link

Can't use assigned value set out of macros in a macro? #9

Closed makamaka closed 14 years ago

makamaka commented 14 years ago
[%- SET lang = "TTerse" -%]
[%- MACRO foo BLOCK -%]
[% lang %]
[% END %]
[%- foo() -%]

Result: Xslate(:3 &foo[11]): Too few arguments for foo but the first line is commented out, it works.

gfx commented 14 years ago

Resolved at http://github.com/gfx/p5-Text-Xslate/commit/c20842306ca7c192d57f3b1b8288b797071ae890, only in XS and PP::Opcode.

I know the resolution is really agly. It is the time when I refactor the macro call mecahnism...