xslate / p5-Text-Xslate

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

readable error message for undefined function #3

Closed tokuhirom closed 14 years ago

tokuhirom commented 14 years ago

I need more readable error message for undefined function. e.g. "Xslate(:1 &main[2]): Undefined subroutine &unknown called" is even better.

 % xslate  --eval "[% unknown() %]" --syntax TTerse
 Xslate(:1 &main[2]): Use of uninitialized value in subroutine entry at /usr/local/app/perl-5.12.1/bin//xslate line 107.
 Xslate(:1 &main[2]): Functions must be a CODE reference, not nil at /usr/local/app/perl-5.12.1/bin//xslate line 107.
gfx commented 14 years ago

Sure.

Resolved at http://github.com/gfx/p5-Text-Xslate/commit/13cb93f49ca9d21caec849973d9be464be404523