Structure

Paginator

struct Paginator

A model representing a paginator.

When you use the listWriter or one of the partitionedWriter versions, you can choose to paginate the items into multiple output files. The rendering context will be given a Paginator which can be used to include links to previous and next pages in your website.

This is very common for blogs, where the archive of all articles is paginated: 20 articles per page for example.

Instance Properties

let index: Int

The current index.

Note The first page has index 1.

let itemsPerPage: Int

How many items are there per page.

let numberOfPages: Int

How many pages are there in total.

Relationships

Conforms To

Swift.Sendable