code: function wrap(file, name, openedFile) {
    switch (options.wrapper) {
      case 'amd':
        return 'define(' + (!options.outputdir ? '"' + path.join(path.dirname(file), name) + '", ' : '') +
          '[ "hogan.js" ], function(Hogan){ return new Hogan.Template(' +
          hogan.compile(openedFile, {asString: 1}) +
          ');});';
      case 'node':
        var globalObj = 'global.' + (options.variable || 'templates') + '["' + name + '"]';
        var globalStmt = globalObj + ' = new Hogan.Template(' + hogan.compile(openedFile, {asString: 1}) + ');';
        var nodeOutput = globalStmt;
  
        // if we have a template per file the export will expose the template directly
        if (options.outputdir) {
          nodeOutput = nodeOutput + '\n' + 'module.exports = ' + globalObj + ';';
        }
  
        return nodeOutput;
      default:
        return (options.variable || 'templates') +
          '["' + name + '"] = new Hogan.Template(' +
          hogan.compile(openedFile, {asString: 1}) +
          ');';
    }
  }
docs: wrap templates