Subject: | Working with Mason2 |
Using latest version on Ubuntu.
Sitemap appears to have problems when template is no TT
package Simple;
use Dancer ':syntax';
use Dancer::Plugin::SiteMap;
use Dancer::Template::Mason2;
our $VERSION = '0.1';
get '/' => sub {
template 'index';
};
true;
&&
config.yml :
template: "mason2"
causes:
Bareword "settings" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 5.
Bareword "charset" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 5.
Bareword "request" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 7.
Bareword "uri_base" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 7.
Bareword "request" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 12.
Bareword "uri_base" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 12.
Bareword "content" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 17.
Bareword "dancer_version" not allowed while "strict subs" in use at
/home/stephen/DancerTest/Simple/views/layouts/main.tt line 19.
/home/stephen/DancerTest/Simple/views/layouts/main.tt around line 5
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-type" content="text/html; charset=<%
settings.charset %>" />
6 <title>Simple</title>
7 <link rel="stylesheet" href="<% request.uri_base %>/css/style.css" />
8