function html() {
  const jsonResume = fs.existsSync(RESUME_PATH)
    ? fs.readFileSync(RESUME_PATH, 'utf-8')
    : fs.readFileSync(FALLBACK_RESUME_PATH, 'utf-8');

  const resume = JSON.parse(jsonResume);

  const options = {
    ignorePartials: false,
    partials: {},
    batch: [PARTIALS_DIR],
    helpers: helpers
  };

  return gulp
    .src(`${VIEWS_DIR}/${TEMPLATE_FILENAME}`)
    .pipe(handlebars({ resume, stylesheet: `/${CSS_FILENAME}` }, options))
    .pipe(rename(HTML_FILENAME))
    .pipe(gulp.dest(OUTPUT_DIR));
}
/**
 * Build the HTML from the resume file (either resume.json provided or a
 * default) and from the templates in views folder
 */
Build the HTML from the resume file (either resume.json provided or a
default) and from the templates in views folder
Build the HTML from the resume file ( either resume . json provided or a default ) and from the templates in views folder
function html() {
  const jsonResume = fs.existsSync(RESUME_PATH)
    ? fs.readFileSync(RESUME_PATH, 'utf-8')
    : fs.readFileSync(FALLBACK_RESUME_PATH, 'utf-8');
  const resume = JSON.parse(jsonResume);
  const options = {
    ignorePartials: false,
    partials: {},
    batch: [PARTIALS_DIR],
    helpers: helpers
  };
  return gulp
    .src(`${VIEWS_DIR}/${TEMPLATE_FILENAME}`)
    .pipe(handlebars({ resume, stylesheet: `/${CSS_FILENAME}` }, options))
    .pipe(rename(HTML_FILENAME))
    .pipe(gulp.dest(OUTPUT_DIR));
}
function html ( ) { const jsonResume = fs . existsSync ( RESUME_PATH ) ? fs . readFileSync ( RESUME_PATH , 'utf-8' ) : fs . readFileSync ( FALLBACK_RESUME_PATH , 'utf-8' ) ; const resume = JSON . parse ( jsonResume ) ; const options = { ignorePartials : false , partials : { } , batch : [ PARTIALS_DIR ] , helpers : helpers } ; return gulp . src ( ` ${ VIEWS_DIR } ${ TEMPLATE_FILENAME } ` ) . pipe ( handlebars ( { resume , stylesheet : ` ${ CSS_FILENAME } ` } , options ) ) . pipe ( rename ( HTML_FILENAME ) ) . pipe ( gulp . dest ( OUTPUT_DIR ) ) ; }
Build the HTML from the resume file (either resume.json provided or a
 default) and from the templates in views folder
Build the HTML from the resume file ( either resume . json provided or a default ) and from the templates in views folder