NAME

Text::Xslate::PP - Yet another Text::Xslate runtime in pure Perl

VERSION

This document describes Text::Xslate::PP version 0.1034.

DESCRIPTION

This module implements Text::Xslate runtime engine in pure Perl. Normally it will be loaded if it fails to load XS. So you don't need to use this module explicitly.

# Text::Xslate loads PP if needed
use Text::Xslate;
my $tx = Text::Xslate->new();

If you want to use Text::Xslate::PP, however, you can use it.

use Text::Xslate::PP;
my $tx = Text::Xslate->new();

XS/PP mode might be switched with $ENV{XSLATE} = 'pp' or 'xs'.

From 0.1024 on, there are two pure Perl engines. Text::Xslate::PP::Booster, used with $ENV{XSLATE} = 'pp=booster', generates optimized Perl code from intermediate code. Text::Xlsate::PP::Opcode, used with $ENV{XSLATE = 'pp=opcode', execute intermediate code directly, emulating the virtual machine in pure Perl.

PP::Booster is much faster than PP::Opcode, but it is less stable, so the default pure Perl engine is PP::Opcode, but PP::Booster will be the default in a future if it is stable enough.

SEE ALSO

Text::Xslate

Text::Xslate::PP::Opcode

Text::Xslate::PP::Booster

AUTHOR

Makamaka Hannyaharamitu <makamaka at cpan.org>

Text::Xslate was written by Fuji, Goro (gfx).

LICENSE AND COPYRIGHT

Copyright (c) 2010 by Makamaka Hannyaharamitu (makamaka).

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.