Skip to content

Commit

Permalink
fix viewpath for ejs include
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyao committed Oct 11, 2013
1 parent 23f925b commit d045381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function _render(view, options, callback) {
return callback(err);
}
var tpl = partial(data);
// fn = ejs.compile(tpl, {filename: view, compileDebug: true, debug: true, _with: settings._with});
fn = ejs.compile(tpl, {filename: view, _with: settings._with});
// fn = ejs.compile(tpl, {filename: viewpath, compileDebug: true, debug: true, _with: settings._with});
fn = ejs.compile(tpl, {filename: viewpath, _with: settings._with});
if (settings.cache) {
cache[view] = fn;
}
Expand Down

0 comments on commit d045381

Please sign in to comment.