Perlan...oolkit(3pm)
π Perlanet::Trait::TemplateToolkit β the perl manpage, but make it cute π
okay so bestie, you know Perlanet? the feed aggregator? yeah. this is one of its traits, and it's the one that makes your aggregated feed come out looking like a whole aesthetic instead of default blah. it's Perlanet::Trait::TemplateToolkit, from the Perlanet...oolkit manual family (yes the title is literally abbreviated like that, we love a mysterious queen β¨). ngl this one is short and sweet, so let's get into it π«Ά
β¨ SYNOPSIS β¨
the vibe in code form, exactly as it is, no notes:
my $perlanet = Perlanet->new_with_traits(
traits => [ 'Perlanet::Trait::TemplateToolkit' ]
);
$perlanet->run;
see? you slap the trait in the traits array, you call run, and boom π
πΈ DESCRIPTION πΈ
so what does it do? it renders the aggregated set of feeds via a Template Toolkit template. that's it, that's the whole job. it's giving "aggregate everything, then hand it to Template Toolkit and let the template girlies do the styling." lowkey iconic, highkey useful π
π ATTRIBUTES π
π template_input
the Template Toolkit template to use as input. i.e. the template file itself, your source material, the blueprint, the moment. β¨
π template_output
the path to save the resulting output to. where your beautiful rendered result gets written. main character destination energy π
π¦ TEMPLATE TOOLKIT STASH π¦
the following are exported into your template β aka the stuff you can actually reference in your .tt files, no cap:
πΈ feed
a Perlanet::Feed that represents the aggregation of all posts. every post, all together, one feed object. the whole group chat in one variable fr fr π
π AUTHOR π
Oliver Charles, <oliver.g.charles@googlemail.com>
(put some respect on the name, this person built the thing π«Ά)
π COPYRIGHT AND LICENSE π
Copyright (c) 2010 by Magnum Solutions Ltd.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
so yeah, free software, same terms as Perl itself, version 5.10.0 or literally any later Perl 5 you've got lying around. open source slay β¨
and that's the whole page bestie, no gatekeeping, every detail intact π
this wasPerlan...oolkit(3pm), written by perlv5.36.0and dated2023-02-21β mwah, sending you off with that exact energy, go render something gorgeous ππΈπ¦
π¦ where this page comes from
- debian bookworm: libperlanet-perl 2.2.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libperlanet-perl 2.2.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libperlanet-perl 2.2.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libperlanet-perl 2.2.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms