lib/transformers/base.transformer.js
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);
        }
    }
}
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);
        }
    }
}
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 ) ; } } }
Get a dot template
@param transformDir
@param templateName
@param clientType
Get a dot template