Dist::...:Slicer(3pm)
π Dist::...:Slicer(3pm) π
okay bestie so real talk β this page lives in the User Contributed Perl Documentation manual, and it's the whole lore on Dist::Zilla::Role::PluginBundle::Config::Slicer. yes that name is a mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
Dist::Zilla::Role::PluginBundle::Config::Slicer β it's giving "pass portions of bundle config to plugins" π
πΈ VERSION πΈ
version 0.202
π SYNOPSIS π
so here's the vibe, literally verbatim:
# in Dist::Zilla::PluginBundle::MyBundle
with (
'Dist::Zilla::Role::PluginBundle', # or PluginBundle::Easy
'Dist::Zilla::Role::PluginBundle::Config::Slicer'
);
# Config::Slicer should probably be last
# (unless you're doing something more complex)
lowkey important: Config::Slicer should probably go last. unless you're doing something more complex, in which case go off i guess π
π DESCRIPTION π
bestie listen. this role is the fairy godmother π§ of your Dist::Zilla Plugin Bundle β it lets your bundle accept configuration customizations for the plugins it's gonna load, and then it merges them transparently. no drama, no manual merging, it just handles it.
here's what that looks like:
# dist.ini
[@MyBundle]
option = 1
Included::Plugin.attribute = overwrite value
AnotherPlug.array[0] = append value
AnotherPlug.array[1] = append another value
want the full tea on how those configs actually get handled? go read "CONFIGURATION SYNTAX" in Config::MVP::Slicer. that's where the details live, fr fr.
okay so mechanically: this role adds a method modifier to bundle_config β and bundle_config is the method that the root PluginBundle role requires, and that PluginBundle::Easy wraps. iconic behavior honestly.
after bundle_config gets called, the modifier swoops in and updates the returned plugin configurations with any values you customized in the main bundle config. slay.
and ngl, most of the actual work is done by Dist::Zilla::Config::Slicer (which is a subclass of Config::MVP::Slicer). so if you want this same functionality but you do not want to consume this role in your bundle, go check out those modules instead. they got you π«Ά
π SEE ALSO π
Config::MVP::SlicerDist::ZillaDist::Zilla::Config::SlicerDist::Zilla::Role::PluginBundleDist::Zilla::Role::PluginBundle::EasyDist::Zilla::PluginBundle::ConfigSlicer
π AUTHOR π
Randy Stauner <rwstauner@cpan.org> β the main character who made this happen π
π¦ COPYRIGHT AND LICENSE π¦
This software is copyright (c) 2011 by Randy Stauner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
so basically: it's free software, you can redistribute and/or modify it, same terms as the Perl 5 programming language system itself. periodt π
and that's the whole page bestie β¨ this was Dist::...:Slicer(3pm) from perl v5.34.0, dated 2022-06-13, and you're officially caught up π no cap π«Ά
π¦ where this page comes from
- debian bookworm: libdist-zilla-config-slicer-perl 0.202-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdist-zilla-config-slicer-perl 0.202-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdist-zilla-config-slicer-perl 0.202-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdist-zilla-config-slicer-perl 0.202-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdist-zilla-config-slicer-perl 0.202-1 Β· 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