- Notifications
You must be signed in to change notification settings - Fork10
License
NotificationsYou must be signed in to change notification settings
twilson63/mercury-router
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a router component forMercury, a FRP JS framework based on the idea oftiny modules.
npm install mercury-router
Mecury Router looks for two state attributes:
base
– This attribute defines the base route of the routerroute
– This attribute defines the current/default route
router()
– initialise mercury router state in app staterouter.render(routes:Object)
– route path/view mapping in app renderrouter.anchor(attributes:Object, children:VTree|String)
– navigate viaa
html elementrouter.go(url:String)
– navigate to url directly
Seeexample for a minimal working implementation.
MITLICENSE
About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.