src/node/LayoutTemplate.js
function initConfig(conf) {
  const result = Object.assign({}, conf);
  if (conf.filename) {
    result.filepath = path.dirname(conf.filename);
  }
  return result;
}
function initConfig(conf) {
  const result = Object.assign({}, conf);
  if (conf.filename) {
    result.filepath = path.dirname(conf.filename);
  }
  return result;
}
function initConfig ( conf ) { const result = Object . assign ( { } , conf ) ; if ( conf . filename ) { result . filepath = path . dirname ( conf . filename ) ; } return result ; }
Initialize the config
@param {object} conf - The configuration
Initialize the config