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