index.js
function (view, locals, context, isAsync) {
    var helpers = {};
    lazy.extend(helpers, this.options.helpers);
    lazy.extend(helpers, this._.helpers.sync);

    if (isAsync) lazy.extend(helpers, this._.helpers.async);
    lazy.extend(helpers, locals.helpers);

    // build the context to expose as `this` in helpers
    var thisArg = {};
    thisArg.options = lazy.extend({}, this.options, locals);
    thisArg.context = context || {};
    thisArg.context.view = view;
    thisArg.app = this;

    // bind template helpers to the instance
    locals.helpers = utils.bindAll(helpers, thisArg);
  }
function (view, locals, context, isAsync) {
    var helpers = {};
    lazy.extend(helpers, this.options.helpers);
    lazy.extend(helpers, this._.helpers.sync);

    if (isAsync) lazy.extend(helpers, this._.helpers.async);
    lazy.extend(helpers, locals.helpers);

    // build the context to expose as `this` in helpers
    var thisArg = {};
    thisArg.options = lazy.extend({}, this.options, locals);
    thisArg.context = context || {};
    thisArg.context.view = view;
    thisArg.app = this;

    // bind template helpers to the instance
    locals.helpers = utils.bindAll(helpers, thisArg);
  }
function ( view , locals , context , isAsync ) { var helpers = { } ; lazy . extend ( helpers , this . options . helpers ) ; lazy . extend ( helpers , this . _ . helpers . sync ) ; if ( isAsync ) lazy . extend ( helpers , this . _ . helpers . async ) ; lazy . extend ( helpers , locals . helpers ) ; // build the context to expose as `this` in helpers var thisArg = { } ; thisArg . options = lazy . extend ( { } , this . options , locals ) ; thisArg . context = context || { } ; thisArg . context . view = view ; thisArg . app = this ; // bind template helpers to the instance locals . helpers = utils . bindAll ( helpers , thisArg ) ; }
Build the context for the given `view` and `locals`.
Build the context for the given view and locals .