Perlan...oolkit(3pm)

πŸ“¦
version 2.2.1 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– 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 (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 was Perlan...oolkit(3pm), written by perl v5.36.0 and dated 2023-02-21 β€” mwah, sending you off with that exact energy, go render something gorgeous πŸ’–πŸŒΈπŸ¦‹
πŸ“¦ where this page comes from