From bb4e4a4d6448988d18ae9411095237174586f277 Mon Sep 17 00:00:00 2001 From: Lars Hamre Date: Sat, 6 Jun 2020 01:19:44 -0400 Subject: [PATCH] Fix cli includes by defaulting views to the current working directory --- bin/cli.js | 3 +++ 1 file changed, 3 insertions(+) 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)');