Giter Club home page Giter Club logo

mojolicious-page-navigator's Introduction

NAME

Mojolicious::Plugin::PageNavigator - Page Navigator plugin for Mojolicious

SYNOPSIS

# Mojolicious::Lite
plugin 'page_navigator'

# Mojolicious
$self->plugin( 'page_navigator' );

DESCRIPTION

Mojolicious::Plugin::PageNavigator generates standard page navigation bar, like

<< 1 2 ... 11 12 13 14 15 ... 85 86 >>

HELPERS

page_navigator

%= page_navigator( $current_page, $total_pages, $opts );

Options

Options is a optional ref hash.

%= page_navigator( $current_page, $total_pages, {
    round => 4,
    outer => 2,
    class => 'number',
    param => 'page' } );
round

Number of pages arround the current page. Default: 4.

outer

Number of outer window pages (first and last pages). Default 2.

class

Class for each page number element. Default: 'number'

param

Name of param for query url. Default: 'page'

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us.

DEVELOPMENT

Repository

https://github.com/silvioq/mojolicious-page-navigator

COPYRIGHT

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.

mojolicious-page-navigator's People

Contributors

silvioq avatar

Watchers

id007 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.