NAME
Dancer::Template::Mason - Mason wrapper for Dancer
VERSION
version 0.002000
SYNOPSIS
# in 'config.yml'
template: 'mason'
# in the app
get '/foo', sub {
template 'foo' => {
title => 'bar'
};
};
Then, on views/foo.mason
:
<%args>
$title
</%args>
<h1><% $title %></h1>
<p>Mason says hi!</p>
DESCRIPTION
This class is an interface between Dancer's template engine abstraction layer and the HTML::Mason templating system.
In order to use this engine, set the template to 'mason' in the configuration file:
template: mason
SEE ALSO
AUTHOR
Yanick Champoux
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.