If you want to download the latest Click Here
bower install structurejs
<script src="bower_components/structurejs/src/util/Extend.js"></script>
Example if you wanted to import the Extend and Router classes to use:
var EventBroker = window.structurejs.Extend;
var Router = window.structurejs.Router;
bower install structurejs
Add the path to the config.js file:
require.config({
paths: {
...
structurejs: '../bower_components/structurejs/src',
...
},
shim: {...}
});
Example if you wanted to import the EventBroker class to use:
var EventBroker = require('structurejs/event/EventBroker');
If you are using RequireJS all you have to do is:
bower install structurejs
Example if you wanted to import the Router class to use:
var Router = require('../bower_components/structurejs/src/controller/Router');