Dancer2::Plugin::Paginator - Dancer2 plugin for Paginator::Lite.
Version 2.04
use Dancer2; use Dancer2::Plugin::Paginator; get '/list' => sub { my $paginator = paginator( 'curr' => $page, 'items' => rset('Post')->count, 'base_url' => '/posts/page/', ); template 'list', { paginator => $paginator }; }; dance;
Configuration can be done in your Dancer2 app config file as described below:
plugins: Paginator: frame_size: 3 page_size: 7
Returns a Paginator::Lite object. Receives same parameters that as the Paginator::Lite constructor.
Original author Blabos de Blebe, <blabos@cpan.org>
<blabos@cpan.org>
Recently brought to live from BackPAN by Mohammad S Anwar, <mohammad.anwar@yahoo.com>
<mohammad.anwar@yahoo.com>
https://github.com/manwar/Dancer2-Plugin-Paginator
Blabos de Blebe has kindly transferred the ownership of this distribution to me and even handed over the GitHub repository as well.
Paginator::Lite
Please report any bugs or feature requests to bug-dancer2-plugin-captcha at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer2-Plugin-Captcha. I will be notified and then you'll automatically be notified of progress on your bug as I make changes.
bug-dancer2-plugin-captcha at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dancer2::Plugin::Paginator
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer2-Plugin-Paginator
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dancer2-Plugin-Paginator
CPAN Ratings
http://cpanratings.perl.org/d/Dancer2-Plugin-Paginator
Search CPAN
http://search.cpan.org/dist/Dancer2-Plugin-Paginator/
Copyright (C) 2013 Blabos de Blebe. Copyright (C) 2017 Mohammad S Anwar.
This program is free software; you can redistribute it and / or modify it under the terms same as Perl 5.
To install Dancer2::Plugin::Paginator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::Paginator
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::Paginator
For more information on module installation, please visit the detailed CPAN module installation guide.