diff --git a/templates/_pager.html.ep b/templates/_pager.html.ep new file mode 100644 index 0000000..571ed64 --- /dev/null +++ b/templates/_pager.html.ep @@ -0,0 +1,11 @@ +<% if (my $pager = stash("pager")) { %> + +<% } %> diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep index 2db1e1f..6e5fa29 100644 --- a/templates/layouts/main.html.ep +++ b/templates/layouts/main.html.ep @@ -20,17 +20,7 @@

<%= title %>

<%= content %>
- <% if (defined $pager) { %> - - <% } %> + <%= include '_pager' %>