xslate / p5-Text-Xslate

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

INSERT should be supported in TTerse #132

Closed bluefeet closed 10 years ago

bluefeet commented 10 years ago

Being able to INSERT a file without it being evaluated as a template makes a lot of sense in certain situations. Especially when converting a giant TT site to Xslate. :)

[% INSERT 'some/file.txt' %]

Either that or an option to INCLUDE which disables template processing.

gfx commented 10 years ago

I'm sorry but it is impossible because the implementation of the variable scope of Xslate is much like Perl5, rather than TT :(