HTML::Mason::Resolver::Null man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

HTML::Mason::Resolver:UserlContributed Perl DocuHTML::Mason::Resolver::Null(3)

NAME
       HTML::Mason::Resolver::Null - a do-nothing resolver

VERSION
       version 1.54

SYNOPSIS
	 my $resolver = HTML::Mason::Resolver::Null->new;

DESCRIPTION
       This HTML::Mason::Resolver subclass is useful if you want to create
       components via the "HTML::Mason::Interp->make_component" method and you
       never plan to interact with the filesystem.

       Basically, it provides all of the necessary resolver methods but none
       of them do anything.

       This means that if you use this method things like "$interp->exec" will
       simply not work at all.

       However, if you just want to make a component with an interepreter 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 ALSO
       Mason

AUTHORS
       ·   Jonathan Swartz <swartz@pobox.com>

       ·   Dave Rolsky <autarch@urth.org>

       ·   Ken Williams <ken@mathforum.org>

COPYRIGHT AND LICENSE
       This software is copyright (c) 2012 by Jonathan Swartz.

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

perl v5.18.2			  2014-01-19	HTML::Mason::Resolver::Null(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net