code: function formatPageResponse(result) {
      var response = {};
  
      if (result.posts) {
          response.posts = result.posts;
      }
  
      if (result.meta && result.meta.pagination) {
          response.pagination = result.meta.pagination;
      }
  
      _.each(result.data, function (data, name) {
          if (data.meta) {
              // Move pagination to be a top level key
              response[name] = data;
              response[name].pagination = data.meta.pagination;
              delete response[name].meta;
          } else {
              // This is a single object, don't wrap it in an array
              response[name] = data[0];
          }
      });
  
      return response;
  }
docs: @description Formats API response into handlebars/theme format.
  
  @return {Object} containing page variables