Text::Xslate::PP(3pm)
β¨ Text::Xslate::PP β¨
bestie, welcome to the pure-Perl runtime of Text::Xslate π this is Text::Xslate::PP, aka "Yet another Text::Xslate runtime in pure Perl", and she is literally carrying the whole template engine on her back when the XS version can't show up. no cap π«Ά
π VERSION π
okay so this doc is describing Text::Xslate::PP version v3.5.9 β
πΈ DESCRIPTION πΈ
so here's the tea: this module implements a Text::Xslate runtime engine in pure Perl π
normally you don't even have to think about her, because she gets loaded automatically when it fails to load XS. which means β and I need you to hear this β you do not need to use this module explicitly. she's the understudy that steps in, no announcement needed π
like, check it:
# Text::Xslate loads PP if needed
use Text::Xslate;
my $tx = Text::Xslate->new();
that's it. that's the whole vibe. you use Text::Xslate, and if XS isn't available, PP slides in and does the thing π¦
BUT. if you want to use Text::Xslate::PP directly, that's also valid, you can absolutely use it:
use Text::Xslate::PP;
my $tx = Text::Xslate->new();
(yeah it's still Text::Xslate->new(), you're just making sure the PP runtime is the one loaded β iconic behaviour honestly π)
now, the mode switch: XS/PP mode might be switched with $ENV{XSLATE} = 'pp' or 'xs' π₯
and lowkey the most useful little trick for when things are acting up: $ENV{XSLATE} = 'pp=verbose' } may be useful for debugging π (yes, the } is right there in the original, I'm not touching it, we keep everything exactly as it is, periodt)
π« SEE ALSO π«
go read these besties too, they're part of the family:
Text::XslateText::Xslate::PP::Opcode
π AUTHOR π
Text::Xslate::PP stuff is originally written by Makamaka Hannyaharamitu <makamaka at cpan.org>, and also maintained by Fuji, Goro (gfx) π absolute legends, we say thank you, we stan β¨
π 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 πͺ
aaaand that's the page, bestie! this lil doc came to you from Perl version v5.42.3, dated 2026-08-22, for Text::Xslate::PP(3pm) in the User Contributed Perl Documentation collection π now go forth and template responsibly, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: libtext-xslate-perl 3.5.9-2build2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms