From 309e12033b76c2221b6b5c761c620816dc0d945d Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sun, 29 Dec 2019 01:00:49 -0500 Subject: Move template files to subfolder More static files will likely be used that do not require using a template (e.g. favicon.ico), so storing them in the public folder will keep them with other served files without getting them confused with the templates. --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/index.ts b/src/index.ts index 6749ae1..71da73c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,12 +34,12 @@ if (!path.isAbsolute(HOST_DIR)) { // prepare template files const bashTemplate = { - inputFile: path.join(__dirname, "..", "public", "bash.template"), + inputFile: path.join(__dirname, "..", "public", "templates", "bash.template"), outputFile: path.join(HOST_DIR, "bash"), context: { TARGET_URL } } as Template; const indexTemplate = { - inputFile: path.join(__dirname, "..", "public", "index.html.template"), + inputFile: path.join(__dirname, "..", "public", "templates", "index.html.template"), outputFile: path.join(HOST_DIR, "index.html"), context: { TARGET_URL } } as Template; -- cgit