SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Template-Plugin-Page rpm build for : OpenSuSE. For other distributions click perl-Template-Plugin-Page.

Name : perl-Template-Plugin-Page
Version : 0.10 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp154.6.1 Date : 2023-01-27 17:09:14
Group : Development/Libraries/Perl Source RPM : perl-Template-Plugin-Page-0.10-lp154.6.1.src.rpm
Size : 0.01 MB
Packager : https://www_suse_com/
Summary : A plugin to help when paging through sets of results
Description :
When searching through large amounts of data, it is often the case that a
result set is returned that is larger than we want to display on one page.
This results in wanting to page through various pages of data. The maths
behind this is unfortunately fiddly, hence this module.

The main concept is that you pass in the number of total entries, the
number of entries per page, and the current page number. You can then call
methods to find out how many pages of information there are, and what
number the first and last entries on the current page really are.

It would be typically used in the following way for an HTML template:

[% USE page = Page(134, 10, 13) %]
Matches < b>[% page.first %] - [% page.last %]< /b> of
< b>[% page.total_entries %]< /b> records.< BR>

Page < b>[% page.current_page %]< /b> of
< b>[% page.last_page %]< /b>< BR>

[% IF page.previous_page %]
< a href=\"index.cgi?page=[% page.previous_page %]\">Previous< /a>
[% END %]   

[% IF page.next_page %]
< a href=\"index.cgi?page=[% page.next_page %]\">Next< /a>
[% END %]

... which would output something like:

Matches < b>121 - 130< /b> of
< b>134< /b> records.< BR>

Page < b>13< /b> of
< b>14< /b>< BR>

< a href=\"index.cgi?page=12\">Previous< /a>
   

< a href=\"index.cgi?page=14\">Next< /a>

Note that this module is simply a plugin to the Data::Page module.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Template-Plugin-Page-0.10-lp154.6.1.noarch.rpm
     

Provides :
perl(Template::Plugin::Page)
perl-Template-Plugin-Page

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Data::Page) >= 0.14
perl(Template) >= 2.07
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Template
/usr/lib/perl5/vendor_perl/5.26.1/Template/Plugin
/usr/lib/perl5/vendor_perl/5.26.1/Template/Plugin/Page.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Template-Plugin-Page
/usr/share/doc/packages/perl-Template-Plugin-Page/Changes
/usr/share/doc/packages/perl-Template-Plugin-Page/README
/usr/share/man/man3/Template::Plugin::Page.3pm.gz

 
ICM