Skip to content

Commit

Permalink
Fix cli includes by defaulting views to the current working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hamham91 committed Jun 6, 2020
1 parent fac1227 commit bb4e4a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ function run() {
}
}

// Default to having views relative from the current working directory
opts.views = ['.'];

// Ensure there's a template to render
if (!templatePath) {
throw new Error('Please provide a template path. (Run ejs -h for help)');
Expand Down

0 comments on commit bb4e4a4

Please sign in to comment.