index.js
function render(engine, str, locals, engineOptions) {
  try {
    var output = engine.render(engine.engine, str, locals, engineOptions)
  } catch(e) {
    throw new Error(
      NAME + ': there was a problem rendering the template:\n' + e)
  }
  return output
}
function render(engine, str, locals, engineOptions) {
  try {
    var output = engine.render(engine.engine, str, locals, engineOptions)
  } catch(e) {
    throw new Error(
      NAME + ': there was a problem rendering the template:\n' + e)
  }
  return output
}
function render ( engine , str , locals , engineOptions ) { try { var output = engine . render ( engine . engine , str , locals , engineOptions ) } catch ( e ) { throw new Error ( NAME + ': there was a problem rendering the template:\n' + e ) } return output }
Render a string using a template engine

@param {any} engine
@param {string} str
@param {Object} locals
@returns {string}
Render a string using a template engine