ng-swagger-gen.js
function(template, model, file) {
    var code = Mustache.render(template, model, templates)
      .replace(/[^\S\r\n]+$/gm, '');
    fs.writeFileSync(file, code, 'UTF-8');
    console.info('Wrote ' + file);
  }
function(template, model, file) {
    var code = Mustache.render(template, model, templates)
      .replace(/[^\S\r\n]+$/gm, '');
    fs.writeFileSync(file, code, 'UTF-8');
    console.info('Wrote ' + file);
  }
function ( template , model , file ) { var code = Mustache . render ( template , model , templates ) . replace ( / [^\S\r\n]+$ / gm , '' ) ; fs . writeFileSync ( file , code , 'UTF-8' ) ; console . info ( 'Wrote ' + file ) ; }
Utility function to render a template and write it to a file
Utility function to render a template and write it to a file