We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad1c8b2 + 03b779b commit a60c76aCopy full SHA for a60c76a
build.js
@@ -164,10 +164,10 @@ var Garden = Class(function(options) {
164
top: lang.navigation[0]
165
};
166
167
- jade.renderFile(template, {locals: options}, function(err, html){
168
- if (err) throw err;
169
- fs.writeFileSync(out, html);
170
- });
+ var jadefile = fs.readFileSync(template);
+ var jadetemplate = jade.compile (jadefile);
+ var html = jadetemplate(options);
+ fs.writeFileSync(out, html);
171
this.log(' Done.');
172
}
173
},
0 commit comments