old_contents: 'use strict';
  
  /**
   * Set the layout to use
   */
  
  module.exports = function layout(file, next) {
    file.layout = file.layout || file.locals.layout || file.options.layout;
    next();
  };
  
new_contents: 'use strict';
  
  /**
   * Set the layout to use
   */
  
  module.exports = function(file, next) {
    file.layout = file.layout
      || file.data.layout
      || file.locals.layout
      || file.options.layout;
    next();
  };
  
subject: check `file.data` for layouts