lib/io.js
function templateSync(content, context) {
  var templateResult;
  try {
    templateResult = _.template(content, context);
  } catch(error) {
    console.error('templateSync() error with source', content, 'or content', context);
    console.error(error);
  }
  return templateResult;
}
function templateSync(content, context) {
  var templateResult;
  try {
    templateResult = _.template(content, context);
  } catch(error) {
    console.error('templateSync() error with source', content, 'or content', context);
    console.error(error);
  }
  return templateResult;
}
Shortcut to apply a template context and return the result
//todo refactor template utilities from ../util.js to lib/template.js
@param content
@param context