// https://www.sitepoint.com/…uide-to-pug/
...asi ve 2/3 te stranky...
mkdir views
touch views/index.pug
--- index.pug ---
doctype html
html(lang='en')
head
title Hello, World!
body
h1 Hello, World!
--- app.js ---
const express = require('express');
const app = express();
app.set('view engine', 'pug');
app.get('/', (req, res) => {
res.render('index');
});
app.listen(3000, () => {
console.log('Listening on port 3000...');
});