lib/evaluate.js
function evaluate(code) {
  const context = {
    module: {
      exports: {},
    },
  };

  // eslint-disable-next-line no-new-func
  const renderFunction = new Function('module', code);
  renderFunction(context.module);

  const template = context.module.exports;

  return template;
}
function evaluate(code) {
  const context = {
    module: {
      exports: {},
    },
  };

  // eslint-disable-next-line no-new-func
  const renderFunction = new Function('module', code);
  renderFunction(context.module);

  const template = context.module.exports;

  return template;
}
function evaluate ( code ) { const context = { module : { exports : { } , } , } ; // eslint-disable-next-line no-new-func const renderFunction = new Function ( 'module' , code ) ; renderFunction ( context . module ) ; const template = context . module . exports ; return template ; }
Evaluate a compiled template for use on the server
@private
@param {string} code - Compiled JS code
@returns {function}
Evaluate a compiled template for use on the server