demo/homePage/homePage.js
function(req, res) {
      this.debug('postProcessor called');

      // example of post API business logic
      var clientMsg = res.yukon.data2.specialMsg || res.yukon.data2.msg;

      // MAGIC ALERT: if no res.yukon.renderData isn't specified, the framework uses res.yukon.data1

      // res.yukon.renderData is the base object sent to jade template
      res.yukon.renderData = {
        globalNav: res.yukon.globalNav,
        cmsData: res.yukon.data1,
        myData: res.yukon.data2,
        clientMsg: clientMsg
      };
    }
function(req, res) {
      this.debug('postProcessor called');

      // example of post API business logic
      var clientMsg = res.yukon.data2.specialMsg || res.yukon.data2.msg;

      // MAGIC ALERT: if no res.yukon.renderData isn't specified, the framework uses res.yukon.data1

      // res.yukon.renderData is the base object sent to jade template
      res.yukon.renderData = {
        globalNav: res.yukon.globalNav,
        cmsData: res.yukon.data1,
        myData: res.yukon.data2,
        clientMsg: clientMsg
      };
    }
function ( req , res ) { this . debug ( 'postProcessor called' ) ; // example of post API business logic var clientMsg = res . yukon . data2 . specialMsg || res . yukon . data2 . msg ; // MAGIC ALERT: if no res.yukon.renderData isn't specified, the framework uses res.yukon.data1 // res.yukon.renderData is the base object sent to jade template res . yukon . renderData = { globalNav : res . yukon . globalNav , cmsData : res . yukon . data1 , myData : res . yukon . data2 , clientMsg : clientMsg } ; }
business logic after all API calls return
business logic after all API calls return