context-manager 
Manage context for templates.
Install
Install with npm
npm i context-manager --save
Usage
var context = require('context-manager');
API
Context
Create an instance of Context.
add
Add a context level, optionally passing a value to start with.
type {String}: The kind of context to add.
level {Number}: Numerical value representing the order in which this level should be merged versus other levels.
value {Object}: Optionally pass a starting object.
context.add('locals', {a: 'b'});
get
Return the context for type.
type {String}: The context type to get.
- returns: {*}
context.set('a', {a: 'b'});
context.get('a');
setLevel
Set the level (number) for the specified context type.
type {String}: The context type to get.
- returns {Number}
num
context.set('a', {a: 'b'});
context.get('a');
getLevel
Get the level (number) for the specified context type.
type {String}: The context type to get.
- returns: {Number}
context.setLevel('a', 1);
context.getLevel('a');
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on August 12, 2014.