CGI::Application::Plugin::Mason

HTML::Mason plugin for CGI::Application
Download

CGI::Application::Plugin::Mason Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Akira Horimoto
  • Publisher web site:
  • http://search.cpan.org/~holly/

CGI::Application::Plugin::Mason Tags


CGI::Application::Plugin::Mason Description

HTML::Mason plugin for CGI::Application CGI::Application::Plugin::Mason is Perl module that offers HTML::Mason template engine.SYNOPSIS package YourApp; use strict; use base qw(CGI::Application); use CGI::Application::Plugin::Stash; # require! use CGI::Application::Plugin::Mason; # cgiapp_init sub cgiapp_init { my $self = shift; $self- >interp_config( comp_root = > "/path/to/root", data_dir = > "/tmp/mason" ); } # runmode sub start { my $self = shift; # Catalyst like $self- >stash- >{name} = "kurt"; $self- >stash- >{age} = 27; # template path $self- >stash- >{template} = "/start.mason"; return $self- >interp_exec; } # start.mason < %args > $name $age < /%args > < html > < head > < % # $c is YourApp object % > < title >get_current_runmode % > < /head > < body > name : < % $name | h % > age : < % $age | h % > < /body > < /html > Requirements: · Perl


CGI::Application::Plugin::Mason Related Software