scrivener v2.4.0 API Reference

Modules

Scrivener is a pagnation library for the Elixir ecosystem. You most likely won’t use Scrivener directly, but rather a library that implements Scrivener’s Paginater protocol for the object you’re trying to paginate

A Scrivener.Config can be created with a caller, a page_number, a page_size and a module. It can optionally be provided a Keyword of options

A Scrivener.Page has 5 fields that can be accessed: entries, page_number, page_size, total_entries and total_pages

The Scrivener.Paginater protocol should be implemented for any type that requires pagination