[][src]Module seed::routing

Structs

Url

Contains all information used in pushing and handling routes. Based on React-Reason's router: https://github.com/reasonml/reason-react/blob/master/docs/router.md

Functions

initial

For setting up landing page routing. Unlike normal routing, we can't rely on the popstate state, so must go off path, hash, and search directly.

push_path

A convenience function, for use when only a path is required.

push_route

Add a new route using history's push_state method. https://developer.mozilla.org/en-US/docs/Web/API/History_API

setup_popstate_listener