<html>
<head>
<title>[% page_title %]</title>
</head>
<body>
<div id="header">
...
</div>
<div id="content">
<% content %>
</div>
</body>
</html>This layout can be used like the following:
use Dancer;
use Template;
layout 'main';
get '/' => sub {
template 'index' => {
page_title => "Your website homepage",
};no problem. The fact you weren't sure might mean the docs missed expressing it. Would you be interesting in helping form some change to the docs so others won't get confused?
On Mar 27, 2010 11:32 PM, "Robert Olson" <bob@rdolson.org> wrote:Doh, I cleverly read the code but missed the first half of{%$tokens, content => $content})Thanks much.--bobOn Mar 27, 2010, at 3:26 PM, sawyer x wrote: > I'm actually at the movies now but I wanted to tak...