0.0.6 • Published 9 years ago

gengojs-default-router v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

gengojs-default-router

The default router plugin for gengo.js.

Build Status

An example usage with options is:

var gengo = require('gengojs');
var router = require('gengojs-default-router');

/* In whatever framework you are using: */

// I'll use express for an example
// but it shouldn't matter

var app = require('express')();
app.use(gengo({
   // Specify the type
   // of option to modify
	router:{
		/* options */
	}
},/*router()*/));

Options

{
	"enabled":false
}

Internal API

  • this.router.toArray() * Should return the URL path as an array.
  • this.router.toDot() * Should return the URL path as an dotted string.
  • this.router.isEnabled() * Should return true if router is enabled.

Dependencies

Not Applicable

Debug

Unix:

DEBUG=gengo.router

Windows:

SET DEBUG=gengo.router

See gengojs-debug for usage.

Contribute

Feel free to contribute or even fork the project. This plugin has been written in ES6 and can be seen under lib/index.js.

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1-beta.8

9 years ago

0.0.1-beta.7

9 years ago

0.0.1-beta.6

9 years ago

0.0.1-beta.5

9 years ago

0.0.1-beta.4

9 years ago

0.0.1-beta.3

9 years ago

0.0.1-beta.2

9 years ago

0.0.1-beta.1

9 years ago