Structure
Paginator
struct PaginatorA 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: IntThe current index.
Note The first page has index 1.
let itemsPerPage: IntHow many items are there per page.
let next: Path?The Path to the next page in the Paginator.
let numberOfPages: IntHow many pages are there in total.
let previous: Path?The Path to the previous page in the Paginator.
Relationships
Conforms To
Swift.Sendable