<commit_before># Will Paginate Renderers

A collection of custom renderers for use with the
[will_paginate](http://github.com/mislav/will_paginate) gem.

## Requirements

will_paginate_renderers currently depends explicitly on [will_paginate
3.0.pre2](https://rubygems.org/gems/will_paginate/versions/3.0.pre2), but will
in the future support any 3.0.x version once a stable version is released.

The easiest way to make use of will_paginate_renderers is through
[Bundler](http://gembundler.com/) by adding the following to your Gemfile:

    gem 'will_paginate' gem 'will_paginate_renderers'

Note that although `will_paginate_renderers` lists `will_paginate` as a
dependency, you still need it in your Gemfile in order to make sure it's
required properly.

Once installed, just tell the `will_paginate` helper which renderer to use (see
below).

## Renderers Provided

### Gmail

**Preview**:

![](http://img.skitch.com/20101022-kf5u89brk4q66rfiyc2xs4wyug.jpg)

**Usage**:

    will_paginate(@posts, :renderer => WillPaginateRenderers::Gmail)

#### Customization

You can change the label and CSS class of the "Newest", "Newer", "Older" and<commit_msg>Fix Gemfile example<commit_after># Will Paginate Renderers

A collection of custom renderers for use with the
[will_paginate](http://github.com/mislav/will_paginate) gem.

## Requirements

will_paginate_renderers currently depends explicitly on [will_paginate
3.0.pre2](https://rubygems.org/gems/will_paginate/versions/3.0.pre2), but will
in the future support any 3.0.x version once a stable version is released.

The easiest way to make use of will_paginate_renderers is through
[Bundler](http://gembundler.com/) by adding the following to your Gemfile:

    gem 'will_paginate'
    gem 'will_paginate_renderers'

Note that although `will_paginate_renderers` lists `will_paginate` as a
dependency, you still need it in your Gemfile in order to make sure it's
required properly.

Once installed, just tell the `will_paginate` helper which renderer to use (see
below).

## Renderers Provided

### Gmail

**Preview**:

![](http://img.skitch.com/20101022-kf5u89brk4q66rfiyc2xs4wyug.jpg)

**Usage**:

    will_paginate(@posts, :renderer => WillPaginateRenderers::Gmail)

#### Customization

You can change the label and CSS class of the "Newest", "Newer", "Older" and
{'fraction_non_alphanumeric': 0.09749784296807593, 'fraction_numerical': 0.02070750647109577, 'mean_word_length': 5.284552845528455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6972296', 'n_tokens_mistral': 776, 'n_tokens_neox': 751, 'n_words': 243}