Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

twilson63/mercury-router

Repository files navigation

This is a router component forMercury, a FRP JS framework based on the idea oftiny modules.

Install

npm install mercury-router

API

Mecury Router looks for two state attributes:

  • base – This attribute defines the base route of the router
  • route – This attribute defines the current/default route

Usage

  • router() – initialise mercury router state in app state
  • router.render(routes:Object) – route path/view mapping in app render
  • router.anchor(attributes:Object, children:VTree|String) – navigate viaa html element
  • router.go(url:String) – navigate to url directly

Seeexample for a minimal working implementation.

Contributors

License

MITLICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp