Cataly...:Visit(3pm)
π Cataly...:Visit(3pm) β the manual page, but make it make sense π
okay bestie, so this is Cataly...:Visit(3pm) from the User Contributed Perl Documentation corner of the world, and we're gonna get you fluent in it. grab a boba, we're doing this. π§β¨
β¨ NAME β¨
Catalyst::View::Component::SubInclude::Visit β it's the visit() plugin for C::V::Component::SubInclude. that's the whole name, no notes, periodt. π
πΈ VERSION πΈ
Version 0.07_03. yes it's a dev release, yes it's serving, don't @ me. π
π¦ SYNOPSIS π¦
first, in your view class:
package MyApp::View::TT;
use Moose;
extends 'Catalyst::View::TT';
with 'Catalyst::View::Component::SubInclude';
__PACKAGE__->config( subinclude_plugin => 'Visit' );
then, literally somewhere in your templates:
[% subinclude('/my/widget') %]
that's it. that's the whole vibe. π
π DESCRIPTION π
Catalyst::View::Component::SubInclude::Visit uses $c->visit() to render subinclude contents. it's giving "delegation but cute". π«Ά
β οΈ heads up bestie: this method is only supported when you're running Catalyst version 5.71000 or newer. older Catalyst? no cap, it will not work. π
β οΈ WARNING: as of Catalyst version5.71000, this plugin doesn't work for chained actions with captured arguments. apparentlyvisitdoesn't handle this type of actions yet. so if your chained action has captures, this plugin is NOT the moment. it's giving broken. π
π METHODS π
generate_subinclude( $c, $path, @args )
this is (roughly) equivalent to the following call:
$c->visit( $path, @args );
but β and this is the iconic part β it handles all the nasty little details for you, like localizing the stash, the parameters, and the response body. this is necessary to keep behavior consistent with the other plugins. it's the responsible friend of the group chat. π§
π₯ SEE ALSO π₯
Catalyst::View::Component::SubIncludeCatalyst
go read those too, iykyk. β
π AUTHOR π
Nilson Santos Figueiredo Junior, <nilsonsfj at cpan.org> β the legend who wrote this. π
π SPONSORSHIP π
Development sponsored by Ionzero LLC <http://www.ionzero.com/>. thank you for funding the vibes, fr fr. π«Ά
πΈ COPYRIGHT & LICENSE πΈ
Copyright (C) 2009 Nilson Santos Figueiredo Junior.
Copyright (C) 2009 Ionzero LLC.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page bestie!! this one's perl v5.34.0, dated 2022-06-09, and it lives under Cataly...:Visit(3pm). slay, you're now fluent. now go render some subincludes. π
β¨π¦
π¦ where this page comes from
- debian bookworm: libcatalyst-view-component-subinclude-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-view-component-subinclude-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-view-component-subinclude-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-view-component-subinclude-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-view-component-subinclude-perl 0.10-4 Β· 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