HTML::...r::Null(3pm)
π HTML::Mason::Resolver::Null π
okay bestie, so this is the HTML::Mason::Resolver::Null page from the User Contributed Perl Documentation (that's the 3pm manual section, iykyk), and it is literally the most chill resolver in the whole HTML::Mason family. she does NOTHING and she is thriving. π
β¨ NAME β¨
HTML::Mason::Resolver::Null β a do-nothing resolver π«Ά
πΈ SYNOPSIS πΈ
my $resolver = HTML::Mason::Resolver::Null->new;
that's it. that's the whole vibe. no cap. β¨
π¦ DESCRIPTION π¦
okay so here's the tea, bestie. π
This HTML::Mason::Resolver subclass is useful if you wanna create components via the HTML::Mason::Interp->make_component method and you never plan to interact with the filesystem. like, ever. not even a little peek. π
Basically, it provides all of the necessary resolver methods but β plot twist β none of them do anything. iconic behaviour honestly. π
This means that if you use this method, things like $interp->exec will simply not work at all. like, zero. nada. the vibe check has failed. π
However, if you just want to make a component with an interpreter and execute that component, it can be useful. for example:
my $interp = HTML::Mason::Interp->new( resolver_class => 'HTML::Mason::Resolver::Null',
data_dir => '/tmp' );
my $comp = $interp->make_component( comp_source => <<'EOF' );
% my $var = 'World';
Hello, <% $var %>!
EOF
my $buffer;
my $request = $interp->make_request( out_method => \$buffer, comp => $comp );
$request->exec;
print $buffer;
see? she's lowkey serving exactly what you need and absolutely nothing else. main character energy but make it minimal. π
β οΈ bestie warning: $interp->exec is a no-go here. don't come crying to me when it doesn't work, I told you fr fr. π
and that's the whole page!! no options, no env vars, no exit statuses, no bugs, no authors, no SEE ALSO β just vibes. sometimes a girl just doesn't need a table of contents. periodt. π
mwah π this page came from perl v5.38.2, dated 2024-03-05, and yes she's filed under HTML::Mason::Resolver::Null(3pm). take care of her, she's doing her best. π«Άβ¨
π¦ where this page comes from
- debian trixie: libhtml-mason-perl 1:1.60-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-mason-perl 1:1.60-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-mason-perl 1:1.60-2 Β· 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