MasonX::StaticBuilder::Component - fill in a single template file


MasonX-StaticBuilder documentation  | view source Contained in the MasonX-StaticBuilder distribution.

Index


NAME

Top

MasonX::StaticBuilder::Component -- fill in a single template file

SYNOPSIS

Top

    my $tmpl = MasonX::StaticBuilder::Component->new($file);
    my $output = $tmpl->fill_in(%args);
    print $output;

DESCRIPTION

Top

new()

Constructor. Give it a hashref containing the following args:

fill_in()

Fill in the template, by running all the mason code in the template files. Any parameters passed to this method will be available to the template as named args.

For example:

    $tmpl->fill_in( foo => "bar");

And in the template:

    <%args>
    $foo => undef
    </%args>

    Foo is <% $foo %>


MasonX-StaticBuilder documentation  | view source Contained in the MasonX-StaticBuilder distribution.