code: function setTemplate(transformDir, templateName, clientType) {
      clientType = clientType ? (clientType + '.') : '';
  
      if (templateCache[templateName]) {
          this.template = templateCache[templateName];
      }
      else {
          var fileName = transformDir + '/' + clientType + templateName + '.template';
  
          if (fs.existsSync(path.normalize(fileName))) {
              var file = fs.readFileSync(path.normalize(fileName));
              this.template = templateCache[templateName] = dot.template(file);
          }
          else {
              throw new Error('No template at ' + fileName);
          }
      }
  }
docs: Get a dot template
  @param transformDir
  @param templateName
  @param clientType