Represents a function that takes params and produces a Route.
Function that creates a function to parse a path.
Function that parses a path and returns a route.
Creates a router using feather-route-matcher.
Creates a router using Mithril Router.
Generic function to create a router from a router library of your choice.
To use this function, write a createXYZRouter
function that in turn calls createRouter
.
All config parameters except for createParsePath
are normally passed-thru from
createXYZRouter
to createRouter
, unless you want to define specific implementations of
getPath
, setPath
, and/or addLocationChangeListener
.
The key parse is createParsePath
. This is where you define how to plug in to the router
library of your choice.
function createParsePath(routeMap, defaultRoute)
receives a routeMap
which is an object
with
the created router.
Creates a router using url-mapper.
Generated using TypeDoc
meiosis-routing/router-helper
The
router-helper
module contains functions for creating a router by plugging in a router library.routerHelper