With StealJS, you can import this module directly in a template that is autorendered:
import plugin from 'can-route-mock';
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");
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.