-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Similar structure to page.js, but different use and implementation.
General example:
export default class Page {
static cache = []
static log = []
// Callbacks: params, query, meta
static route(uri = '', ...callbacks) {}
static history() {}
forward(url = '') {}
next(url = '') {
return this.forward(url)
}
backward(url = '') {}
back(url = '') {
return this.backward(url)
}
rewrite(url = '') {}
redirect(url = '') {}
// position: px, percentage, selector
scroll(position = '') {}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request