tesla-router
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "tesla-router", | ||
"description": "Router for Tesla.js", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -8,11 +8,11 @@ # Tesla.js Router | ||
## About | ||
And MVC style auto-routing system used by [http://teslajs.com](Tesla.js). | ||
An MVC style auto-router for [Tesla.js](http://teslajs.com). | ||
## How It Works | ||
This router will attempt to auto-load a controller based on the current URL. If you are using Tesla it comes ready to go out of the box. If you want to use it as a stand-alone router, see the installation section below. | ||
This router will attempt to auto-load a controller based on the current URL. If you are using [Tesla.js](http://teslajs.com) it comes ready to go out of the box. If you want to use it as a stand-alone router, see the [installation]([#installation--usage) section below. | ||
Following are some quick examples of how URL's are mapped to your controllers. | ||
Following is a quick walkthrough of how URL's are mapped to controllers. | ||
Going to [http://mysite.com/foo/bar](http://mysite.com/foo/bar) will attempt to load: | ||
For example, Going to [http://mysite.com/foo/bar](http://mysite.com/foo/bar) will attempt to load: | ||
@@ -112,3 +112,3 @@ | ||
## Installation & Usage | ||
This module i sbuilt to work with Tesla framework, but will also work as a stand-alone router (though it does require Express at a minimum). | ||
This module is built to work with the [Tesla.js](http://teslajs.com) framework, but will also work as a stand-alone router (though it does require Express 4 at a minimum). | ||
@@ -156,3 +156,3 @@ ##### Install | ||
Tesla includes an errorController to handle any errors. But, if you are using this as a stand-alone, you will need to create the file **app/controllers/errorController.js** with the following methods: | ||
[Tesla.js](http://teslajs.com) includes an error controller to handle any errors. But, if you are using this as a stand-alone, you will need to create the file **app/controllers/errorController.js** with the following methods: | ||
@@ -159,0 +159,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13439
0