Text::MicroMason::SafeText::MicroMason::Safe is a Perl module to compile all templates in a safe compartment. | |
Download |
Text::MicroMason::Safe Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Alan Ferrency
- Publisher web site:
- http://search.cpan.org/~ferrency/Text-MicroMason-2.0/MicroMason/Safe.pm
Text::MicroMason::Safe Tags
Text::MicroMason::Safe Description
Text::MicroMason::Safe is a Perl module to compile all templates in a safe compartment. Text::MicroMason::Safe is a Perl module to compile all templates in a safe compartment.SYNOPSISInstead 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 Requirements: · Perl
Text::MicroMason::Safe Related Software