{
"import": [
"mizchi/js",
"mizchi/js_browser/history"
]
}fn main {
// Get history object
let history = @history.history()
// Navigate
history.back()
history.forward()
history.go(-2) // Go back 2 pages
// Modify history
history.push_state(state_obj, "title", "/new-url")
history.replace_state(state_obj, "title", "/replaced-url")
// Get current state
let state = history.state()
// Get history length
let length = history.length()
}browser-specific js bindings (DOM, canvas, indexeddb, ...)
Dependencies