About
A modular, lightweight pagination system for displaying content from various (and varied) JSON data sources. Supports multiple pages with a customisable number of items per page and dynamic pagination buttons.
Features
- Separate JSON files for different content types (
pages.json
,posts.json
,users.json
, etc.) - HTML
<template>
elements for rendering content dynamically. Note:<template>
element is required. - Modular JS with
render-content.js
,render-[type]-content.js
, andpaginator.js
- URL syncing and browser back/forward support
- Optional preprocessing/normalization of JSON fields (
normalise-data.js
) - Supports nested data, arrays, and custom transformations per content type
- Pagination button rendering with max visible buttons and dynamic updates.