lib/processor.js
function (context, next) {
        if (context.cached.error)
            return next(context.cached.error);
        if (!context.cached.template)
            return next(new errors.Internal("For unknowns reasons, the template couldn't have been processed."));

        var opts = {
            requests: context.cached.requests,
            template: context.cached.template,
            context: context.options.solidifyContext,
            host: this.options.host,
            sessionID: context.options.sessionID
        };

        // solidify the template by feeding it.
        return this._solidify.feed(opts, function (err, result) {
            if (err)
                return next(new errors.Internal('Solidify error: ' + err.message));
            context.solidified = result;
            next(null);
        });
    }
function (context, next) {
        if (context.cached.error)
            return next(context.cached.error);
        if (!context.cached.template)
            return next(new errors.Internal("For unknowns reasons, the template couldn't have been processed."));

        var opts = {
            requests: context.cached.requests,
            template: context.cached.template,
            context: context.options.solidifyContext,
            host: this.options.host,
            sessionID: context.options.sessionID
        };

        // solidify the template by feeding it.
        return this._solidify.feed(opts, function (err, result) {
            if (err)
                return next(new errors.Internal('Solidify error: ' + err.message));
            context.solidified = result;
            next(null);
        });
    }
function ( context , next ) { if ( context . cached . error ) return next ( context . cached . error ) ; if ( ! context . cached . template ) return next ( new errors . Internal ( "For unknowns reasons, the template couldn't have been processed." ) ) ; var opts = { requests : context . cached . requests , template : context . cached . template , context : context . options . solidifyContext , host : this . options . host , sessionID : context . options . sessionID } ; // solidify the template by feeding it. return this . _solidify . feed ( opts , function ( err , result ) { if ( err ) return next ( new errors . Internal ( 'Solidify error: ' + err . message ) ) ; context . solidified = result ; next ( null ) ; } ) ; }
The page has been rendered, so we check for errors and finalize the template.
@param {object} context
@param {function} next
The page has been rendered so we check for errors and finalize the template .