\\ app.js
const express = require("express");
const app = express();
const path = require("path")
const port = 8080
app.set("view engine", "pug");
app.set("views");
app.get("/", function(request, response){
response.render("index");
});
app.use(express.static(path.join(__dirname, 'static')));
app.use(express.static(path.join(__dirname, 'views')));
app.listen(port, () => console.log(`http://localhost:${8080}`));
doctype html
html
head
meta(charset="utf-8")
title Заголовок страницы
link(type="Image/x-icon" href="/favicon.png" rel="icon")
link(type='text/css' href='./static/styles/style.css' rel='stylesheet')
body
script(type='text/javascript' src='./static/scripts/script.js')