lib/transformers/transformer.factory.js
function generateTransformer(name, transformerFns, templateDir, pluginOptions) {

    var Transformer = function () {};
    var transformer = new Transformer();

    // add function mixins to the transformer
    _.extend(transformer, transformerFns, baseTransformer, annotationHelper, utensils, pluginOptions);

    // add reference to the template function
    transformer.setTemplate(templateDir, name, pluginOptions.clientType);

    // each transformer can reference each other
    transformer.transformers = cache;

    // return the transformer
    return transformer;
}
function generateTransformer(name, transformerFns, templateDir, pluginOptions) {

    var Transformer = function () {};
    var transformer = new Transformer();

    // add function mixins to the transformer
    _.extend(transformer, transformerFns, baseTransformer, annotationHelper, utensils, pluginOptions);

    // add reference to the template function
    transformer.setTemplate(templateDir, name, pluginOptions.clientType);

    // each transformer can reference each other
    transformer.transformers = cache;

    // return the transformer
    return transformer;
}
function generateTransformer ( name , transformerFns , templateDir , pluginOptions ) { var Transformer = function ( ) { } ; var transformer = new Transformer ( ) ; // add function mixins to the transformer _ . extend ( transformer , transformerFns , baseTransformer , annotationHelper , utensils , pluginOptions ) ; // add reference to the template function transformer . setTemplate ( templateDir , name , pluginOptions . clientType ) ; // each transformer can reference each other transformer . transformers = cache ; // return the transformer return transformer ; }
Generate a transformer object based off the input params
@param name
@param transformerFns
@param templateDir
@param pluginOptions
Generate a transformer object based off the input params