lib/templates.js
function renderTemplateToFile(templateFile, destFile, data, options) {
    renderTemplateTextToFile(read(templateFile), normalizeFile(destFile), data, options);
  }
function renderTemplateToFile(templateFile, destFile, data, options) {
    renderTemplateTextToFile(read(templateFile), normalizeFile(destFile), data, options);
  }
function renderTemplateToFile ( templateFile , destFile , data , options ) { renderTemplateTextToFile ( read ( templateFile ) , normalizeFile ( destFile ) , data , options ) ; }
Render template to file
@function $hb~renderToFile
@param {string} template - Template file
@param {string} destination - Destination file
@param {Object} [data] - Object containing substitutions to perform on the template. By default, it will
render the text using $app properties
@example
// Writes a rendered file 'my.cnf'
$hb.renderToFile('my.cnf.tpl', 'conf/my.cnf');
Render template to file