diff --git a/bin/cli.js b/bin/cli.js index 29408f14..25c00810 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -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)');