NAME

Template::Benchmark::Engines::TextXslate - Template::Benchmark plugin for Text::Xslate.

SYNOPSIS

Provides benchmark functions and template feature syntaxes to allow Template::Benchmark to benchmark the Text::Xslate template engine.

KNOWN ISSUES AND BUGS

Some of these issues may be due to my personal lack of understanding of the template engine in question, and shouldn't be taken as a criticism of the template engine in question.

Patches or workarounds to address these issues are welcome.

instance_reuse not available

Instance reuse in Text::Xslate is apparantly supported but doesn't appear to work with template files, only strings.

Template::Benchmark requires that instance reuse be from a disk-based template, so this cache type will be unavailable for now.

Note to self, can test error with:

#  Dies with: Xslate: Cannot load template '<input>': Xslate: Cannot find <input> (path: /tmp) at -e line 3
echo '<:= $var :>' >/tmp/xslate.txt
perl -MText::Xslate -e '$t = Text::Xslate->new(
  path => [ "/tmp" ], file => "xslate.txt" );
  print $t->render( { var => "worked" } );'

#  This works, but isn't really instance-reuse caching:
perl -MText::Xslate -e '$t = Text::Xslate->new(
  path => [ "/tmp" ] );
  print $t->render( "xslate.txt", { var => "worked" } );'

AUTHOR

Sam Graham, <libtemplate-benchmark-perl at illusori.co.uk>

BUGS

Please report any bugs or feature requests to bug-template-benchmark at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Benchmark. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Template::Benchmark::Engines::TextXslate

You can also look for information at:

ACKNOWLEDGEMENTS

Thanks to Paul Seamons for creating the the bench_various_templaters.pl script distributed with Template::Alloy, which was the ultimate inspiration for this module.

COPYRIGHT & LICENSE

Copyright 2010 Sam Graham.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.