code: 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);
    }
docs: Utility function to render a template and write it to a file