Skip to content

Instantly share code, notes, and snippets.

@jywarren
Last active January 10, 2023 16:59
Show Gist options
  • 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