Scrivener
Note: You're probably looking for Scrivener.Ecto. Have a look there first.
Scrivener is a pagination library for the Elixir ecosystem. You most likely won't use Scrivener directly, instead using a library that implements Scrivener's Paginater
protocol for the type of data you're trying to paginate.
The primary use for Scrivener is the pagination of Ecto queries. For more information, see Scrivener.Ecto.
Low Maintenance Warning
This library is in low maintenance mode, which means the author is currently only responding to pull requests and breaking issues.
Related Libraries
- Scrivener.Ecto paginate your Ecto queries with Scrivener
- Scrivener.HTML generates HTML output using Bootstrap or other frameworks
- Scrivener.Headers adds response headers for API pagination
- Scrivener.List allows pagination of a list
Installation
Add scrivener
to your mix.exs
applications
and dependencies
.
def application do
[applications: [:scrivener]]
end
[{:scrivener, "~> 2.0"}]
Contributing
You can run the tests with the following command:
mix test