From 6f6f3c84818b0ee67fbe9dad467ac841c5206024 Mon Sep 17 00:00:00 2001 From: Flummi Date: Fri, 26 Apr 2019 04:24:57 +0000 Subject: [PATCH] tpl to hbs --- .gitattributes | 2 +- src/inc/routes/index.mjs | 2 +- views/{index.html.tpl => index.hbs} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename views/{index.html.tpl => index.hbs} (100%) diff --git a/.gitattributes b/.gitattributes index 53bbf52..ddd8fda 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ *.mjs gitlab-language=javascript -*.tpl gitlab-language=handlebars +*.hbs gitlab-language=handlebars diff --git a/src/inc/routes/index.mjs b/src/inc/routes/index.mjs index cf820b2..4e95f6e 100644 --- a/src/inc/routes/index.mjs +++ b/src/inc/routes/index.mjs @@ -5,7 +5,7 @@ import handlebars from "handlebars"; import { queries } from "./inc/index"; -const template = fs.readFileSync("./views/index.html.tpl", "utf-8"); +const template = fs.readFileSync("./views/index.hbs", "utf-8"); router.get(/^\/$/, async (req, res) => { const db = await sql; diff --git a/views/index.html.tpl b/views/index.hbs similarity index 100% rename from views/index.html.tpl rename to views/index.hbs