Dancer::Template::Mason2

Mason 2.x wrapper for Dancer
Download

Dancer::Template::Mason2 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jonathan Swartz
  • Publisher web site:
  • http://search.cpan.org/~jswartz/

Dancer::Template::Mason2 Tags


Dancer::Template::Mason2 Description

Dancer::Template::Mason2 is a Perl interface between Dancer's template engine abstraction layer and the Mason 2.x templating system.In order to use this engine, set the template to 'mason2' in the configuration file: template: mason2The default template extension is ".mc".SYNOPSIS # in 'config.yml' template: 'mason2' # in the app get '/foo', sub { template 'foo' => { title => 'bar' }; };Then, in views/foo.mc: < %args > $.title < /%args > < h1 >< % $.title % >< /h1 > < p >Mason says hi!< /p >Product's homepage


Dancer::Template::Mason2 Related Software