lib/components/render_page.js
function wrapFunctions(fns, file, files) {
  return Object.entries(fns)
    .reduce((obj1, [groupName, group]) => {
      return Object.assign(obj1, {
        [groupName]: Object.entries(group)
          .reduce((obj2, [fnName, fn]) => {
            return Object.assign(obj2, { [fnName]: fn(file, files) });
          }, {})
      });
    }, {});
}
function wrapFunctions(fns, file, files) {
  return Object.entries(fns)
    .reduce((obj1, [groupName, group]) => {
      return Object.assign(obj1, {
        [groupName]: Object.entries(group)
          .reduce((obj2, [fnName, fn]) => {
            return Object.assign(obj2, { [fnName]: fn(file, files) });
          }, {})
      });
    }, {});
}
function wrapFunctions ( fns , file , files ) { return Object . entries ( fns ) . reduce ( ( obj1 , [ groupName , group ] ) => { return Object . assign ( obj1 , { [ groupName ] : Object . entries ( group ) . reduce ( ( obj2 , [ fnName , fn ] ) => { return Object . assign ( obj2 , { [ fnName ] : fn ( file , files ) } ) ; } , { } ) } ) ; } , { } ) ; }
Wrap the template functions to pass them the current file.
Wrap the template functions to pass them the current file .