Text::MicroMason::Safe is a Perl module to compile all templates in a safe compartment.
SYNOPSIS
Instead of using this class directly, pass its name to be mixed in:
use Text::MicroMason;
my $mason = Text::MicroMason->new( -Safe );
Use the standard compile and execute methods to parse and evalute templates:
print $mason->compile( text=>$template )->( @%args );
print $mason->execute( text=>$template, @args );
Safe usage restricts templates from accessing your files or data:
print $mason->execute( text=>"" ); # dies
print $mason->execute( text=>"The time is ." ); # dies
Product's homepage
Requirements:
· Perl