NAME

Text::MicroMason::TemplateDir - Interpret file path relative to base dir

SYNOPSIS

Instead of using this class directly, pass its name to be mixed in:

use Text::MicroMason;
my $mason = Text::MicroMason->new( -TemplateDir );

Templates stored in files can be run directly or included in others:

print $mason->execute( file=>"./greeting.msn", 'name'=>'Charles');

TO DO

This module is not finished.

DESCRIPTION

This module changes the resolution of files passed to compile() and execute() to be relative to a base directory path or to the currently executing template.

Supported Attributes

template_root

Base directory from which to find templates.

Private Methods

resolve

Intercepts uses of file templates and applies the base-path adjustment.

SEE ALSO

For the core functionality of this package see Text::MicroMason and Text::MicroMason::Base.

For distribution, installation, support, copyright and license information, see Text::MicroMason::ReadMe.