Context Traits

Dynamic Behaviour Adaptation Through Run-Time Trait Recomposition

Getting Started

In the browser

Download the production version or development version of the library, and include it in your page as usual:

<script src="context-traits.js"></script>

To load the library in an arbitrary namespace (for example cop) do:

<script>this.exports = cop;</script>
<script src="context-traits.js"></script>

Don’t forget to include the library dependencies, Underscore and Traits.

On the server (coming soon)

Install the module with:

npm install context-traits

And load it as usual:

var cop = require('context-traits');

Diving In