tpl to hbs
This commit is contained in:
parent
621dccb672
commit
6f6f3c8481
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1,2 +1,2 @@
|
||||||
*.mjs gitlab-language=javascript
|
*.mjs gitlab-language=javascript
|
||||||
*.tpl gitlab-language=handlebars
|
*.hbs gitlab-language=handlebars
|
||||||
|
|
|
@ -5,7 +5,7 @@ import handlebars from "handlebars";
|
||||||
|
|
||||||
import { queries } from "./inc/index";
|
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) => {
|
router.get(/^\/$/, async (req, res) => {
|
||||||
const db = await sql;
|
const db = await sql;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user