HTML::Mason::Compiler::ToObject - A Compiler subclass that generates Mason object code
my $compiler = HTML::Mason::Compiler::ToObject->new;
my $object_code = $compiler->compile( comp_source => $source, name => $comp_name );
This Compiler subclass generates Mason object code (Perl code). It is the default Compiler class used by Mason.
new()
CONSTRUCTORAll of these parameters are optional.
HTML::Mason::Component
.
HTML::Mason::Subcomponent
.
HTML::Mason::Commands
.
use strict
.
By default, this is true.
This class is primarily meant to be used by the Interpreter object, and as such has a very limited public API.
comp_source
and name
parameters are
optional. The comp_class
can be used to change the component class
for this one comonent.