code: function render(templateFile, replacements) {
  
    var template = fs.readFileSync(templateFile, "utf8");
  
    for(var name in replacements) {
      if(!replacements.hasOwnProperty(name)) continue;
      template = template.replace(new RegExp("%"+name+"%", "g"), replacements[name].toString())
    }
  
    return template;
  }
docs: for { name: "foo" } replaces all occurances of %name% with "foo"