Template::Plugin::Pagination 0.90 review
DownloadTemplate::Plugin::Pagination is a plugin to help paginate pages of results. SYNOPSIS [% USE page = Pagination(items, current_
|
|
Template::Plugin::Pagination is a plugin to help paginate pages of results.
SYNOPSIS
[% USE page = Pagination(items, current_page, entries_per_page) %]
[% FOREACH item IN page.page_data; ...; DONE %]
First page: [% page.first_page %]
Prev page: [% page.previous_page %]
Next page: [% page.next_page %]
Last page: [% page.last_page %]
This plugin helps you construct pages that include subsets of data from a list, such as search results which you'll paginated in groups of 10.
It's based heavily on Template::Plugin::Page, which you should see for a detailed example of to use this. (That module is a thin wrapper around Data::Page, whereas this one is a wrapper around Data::Paginated, which is Data::Page + Data::Pageset + some extras).
Requirements:
Perl
Template::Plugin::Pagination 0.90 search tags