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::Xslate
  • Text::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 ✨


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