Module...eStore(3pm)

πŸ“¦
version 0.144 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ¦‹ NAME πŸ¦‹

Module::Starter::Plugin::ModuleStore β€” bestie, this one stores inline templates in modules ✨


πŸ’– VERSION πŸ’–

version 0.144 β€” yeah it's a lil vintage, still slays πŸ’…


🌸 SYNOPSIS 🌸

use Module::Starter qw(
  Module::Starter::Simple
  Module::Starter::Plugin::Template
  Module::Starter::Plugin::ModuleStore
  ...
);

Module::Starter->create_distro( ... );

✨ DESCRIPTION ✨

Okay so listen πŸ‘‘ β€” this Module::Starter plugin is meant to be loaded after Module::Starter::Plugin::Template. It's giving "second in line, but essential."

It implements the templates method, which the Template plugin literally requires. So yeah, it's carrying the whole operation on its back, no cap 🫢

And here's the vibe: it works like InlineStore, but instead of loading a physical file, it loads the DATA section of a Perl module. Not a file on disk. The DATA section. Inside a module. Iconic behavior tbh πŸ’€


πŸŽ€ METHODS πŸŽ€

⭐ templates

This method reads in the template module (described above, bestie, keep up πŸ’–) and populates the object's templates attribute.

So how does it find the module template module? Great question, love that for you:

  1. It checks the MODULE_TEMPLATE_MODULE environment variable first
  2. Then it checks the template_module config option

That's the whole search order. Env var first, config option second. Periodt πŸ’…


🌈 AUTHOR 🌈

Ricardo SIGNES, <rjbs@cpan.org> 🧚


πŸ’œ Bugs πŸ’œ

Please report any bugs or feature requests to bug-module-starter-plugin-inlinestore@rt.cpan.org, or through the web interface at <http://rt.cpan.org>.

And fr fr, the way this works is: I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. Mutual notification arc, we love to see it 🫢


Copyright 2004 Ricardo SIGNES, All Rights Reserved.

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


okay that's the whole page bestie, ty for reading, ily πŸ’–

Sign-off moment πŸŽ€: this was pulled from the perl v5.32.0 manual set, dated 2021-01-09, and the page you just read is Module...eStore(3pm) from the User Contributed Perl Documentation. Slay, go build a distro 🌸✨