v1.18.x
psychobunny 11 years ago
parent 4961becd1d
commit 8fa3baf32d

@ -62,7 +62,7 @@
if (!templates.cache[tpl]) { if (!templates.cache[tpl]) {
fs.readFile(filename, function(err, html) { fs.readFile(filename, function(err, html) {
templates.cache[tpl] = html.toString(); templates.cache[tpl] = (html || '').toString();
return fn(err, templates.parse(templates.cache[tpl], options)); return fn(err, templates.parse(templates.cache[tpl], options));
}); });
} else { } else {

Loading…
Cancel
Save