xslate / p5-Text-Xslate

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

For include, allow scalars without the file extension #180

Open phudlow opened 7 years ago

phudlow commented 7 years ago

When using include, barewords are currently allowed:

include foo;

However, when including the same value as a scalar, this isn't allowed:

include "foo"; or my $foo = "foo"; include $foo;

It becomes necessary to concatenate the extension for the file to be included:

include $foo ~ ".tx";

As a quality of life improvement, just being able to use a scalar of the file name without the extension would be great.