NAME
Sledge::Plugin::Layout - Rails like layout plugin for Sledge
SYNOPSIS
project Your::Pages;
use Sledge::Plugin::Layout;
__PACKAGE__->set_layout('include/layout.html');
sub dispatch_foo {
my $self = shift;
$self->tmpl->param(i => 3);
}
# include/layout.html
<html><head><title>Your Project</title></head><body>
[% INCLUDE $template_for_layout %]
</body></html>
# foo.html
[% i | html %]foo!!
# extract ...
<html><head><title>Your Project</title></head><body>
3foo!!
</body></html>
DESCRIPTION
Sledge::Plugin::Layout use to "wrap" some presentation around your views.
AUTHOR
MATSUNO Tokuhiro <tokuhiro at mobilefactory.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.