can-route-mock

a fake url for routing

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

import plugin from 'can-route-mock';

CommonJS use

Use require to load can-route-mock and everything else needed to create a template that uses can-route-mock:

var plugin = require("can-route-mock");

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-route-mock/dist/global/can-route-mock.js'></script>

This plugin is one of many. Check out all of the DoneJS plugins on NPM.