Skip to content

Instantly share code, notes, and snippets.

@jywarren
Last active January 10, 2023 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jywarren/0b2814639eefe71fb0ed6d05ae54adf6 to your computer and use it in GitHub Desktop.
Save jywarren/0b2814639eefe71fb0ed6d05ae54adf6 to your computer and use it in GitHub Desktop.
export function Paginate() {
let blabla = 3;
function setup() {
}
function clear() {
}
return {
setup: setup,
clear: clear
}
}
// archive.js
import Paginate from "paginate.js"
// when loading a collection:
// if (paginate is defined) paginate.clear() // clear previous collection pagination listeners
let paginate = Paginate.setup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment