lib/benchpress.js
function load(template) {
  return new Promise((resolve, reject) => {
    const promise = Benchpress.loader(template, (templateFunction) => {
      resolve(templateFunction);
    });

    if (promise && promise.then) {
      promise.then(resolve, reject);
    }
  });
}
function load(template) {
  return new Promise((resolve, reject) => {
    const promise = Benchpress.loader(template, (templateFunction) => {
      resolve(templateFunction);
    });

    if (promise && promise.then) {
      promise.then(resolve, reject);
    }
  });
}
function load ( template ) { return new Promise ( ( resolve , reject ) => { const promise = Benchpress . loader ( template , ( templateFunction ) => { resolve ( templateFunction ) ; } ) ; if ( promise && promise . then ) { promise . then ( resolve , reject ) ; } } ) ; }
necessary to support both promises and callbacks can remove when `parse` methods are removed
necessary to support both promises and callbacks can remove when parse methods are removed