Mojolicious::Plugin::PageNavigator - Page Navigator plugin for Mojolicious
# Mojolicious::Lite plugin 'page_navigator' # Mojolicious $self->plugin( 'page_navigator' );
Mojolicious::Plugin::PageNavigator generates standard page navigation bar, like
<< 1 2 ... 11 12 13 14 15 ... 85 86 >>
%= page_navigator( $current_page, $total_pages, $opts );
Options is a optional ref hash.
%= page_navigator( $current_page, $total_pages, { round => 4, outer => 2, class => 'number', param => 'page' } );
Number of pages arround the current page. Default: 4.
Number of outer window pages (first and last pages). Default 2.
Class for each page number element. Default: 'number'
Name of param for query url. Default: 'page'
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
https://github.com/silvioq/mojolicious-page-navigator
Copyright (C) 2011, Silvio Quadri
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
To install Mojolicious::Plugin::PageNavigator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::PageNavigator
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::PageNavigator
For more information on module installation, please visit the detailed CPAN module installation guide.