GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - component/route: Route implementation for client-side routers

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
test
test
 
 
.gitignore
.gitignore
 
 
History.md
History.md
 
 
Makefile
Makefile
 
 
Readme.md
Readme.md
 
 
component.json
component.json
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

route

Route implementation for client-side routers.

Installation

$ component install component/route

API

Route(path)

Initialize a Route with a path string or regexp.

Route#before(fn)

Add before fn used when the "page" is shown. This may be invoked any number of times.

Route#after(fn)

Assign after fn used to perform cleanup when an alternate "page" is shown. This may be invoked any number of times.

Route#call(type, [args])

Invoke callbacks of type with args array.

Route#match(path)

Match against the given path. Returns false or an array with params matched.

License

MIT

About

Route implementation for client-side routers

Resources

Readme
Activity
Custom properties

Stars

16 stars

Watchers

11 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.