<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML::Mason::Resolver::Null - a do-nothing resolver</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body style="background-color: white">
<!-- INDEX BEGIN -->
<div name="index">
<p><A NAME="__index__"></a></p>
<ul>
<li><A HREF="#name">NAME</a></li>
<li><A HREF="#synopsis">SYNOPSIS</a></li>
<li><A HREF="#description">DESCRIPTION</a></li>
<li><A HREF="#see_also">SEE ALSO</a></li>
</ul>
<hr name="index" />
</div>
<!-- INDEX END -->
<p>
</p>
<h1><A NAME="name">NAME</a></h1>
<p>HTML::Mason::Resolver::Null - a do-nothing resolver</p>
<p>
</p>
<hr />
<h1><A NAME="synopsis">SYNOPSIS</a></h1>
<pre>
my $resolver = HTML::Mason::Resolver::Null->new;</pre>
<p>
</p>
<hr />
<h1><A NAME="description">DESCRIPTION</a></h1>
<p>This HTML::Mason::Resolver subclass is useful if you want to create
components via the <code>HTML::Mason::Interp->make_component</code> method
and you never plan to interact with the filesystem.</p>
<p>Basically, it provides all of the necessary resolver methods but none
of them do anything.</p>
<p>This means that if you use this method things like <code>$interp->exec</code>
will simply not work at all.</p>
<p>However, if you just want to make a component with an interepreter and
execute that component it can be useful. For example:</p>
<pre>
my $interp = HTML::Mason::Interp->new( resolver_class => 'HTML::Mason::Resolver::Null',
data_dir => '/tmp' );</pre>
<pre>
my $comp = $interp->make_component( comp_source => <<'EOF' );
% my $var = 'World';
Hello, <% $var %>!
EOF</pre>
<pre>
my $buffer;
my $request = $interp->make_request( out_method => \$buffer, comp => $comp );
$request->exec;</pre>
<pre>
print $buffer;</pre>
<p>
</p>
<hr />
<h1><A NAME="see_also">SEE ALSO</a></h1>
<p><a HREF="../Mason.html">HTML::Mason</a></p>
</body>
</html>