scrivener v2.0.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 page_number, a page_size and a module

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

Protocols

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