Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/plugins/paginate.ts>PaginateOptions

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface PaginateOptions
import { type PaginateOptions } from "https://deno.land/x/lume@v1.19.0/plugins/paginate.ts";

The options for the paginate helper

Properties

size: number

The number of elements per page

url: (page: number) => string

The function to generate the url of the pages

optional
each: (data: PaginateResult<unknown>, page: number) => void

Function to modify or add extra data to each page