This commit is contained in:
lab
2023-10-25 09:30:29 +03:00
commit 2e9f825544
109 changed files with 10821 additions and 0 deletions

20
29/app.js Normal file
View File

@@ -0,0 +1,20 @@
const express = require('express');
const hbs = require('hbs');
const app = express();
app.set('view engine', 'hbs');
hbs.registerPartials(__dirname + 'viewspartials');
app.use('contact', function (request, response) {
response.render('contact', {
title 'Мои контакты',
emailsVisible true,
emails ['gavgav@mycorp.com', 'mioaw@mycorp.com'],
phone '+1234567890',
});
});
app.use('', function (request, response) {
response.render('home.hbs');
});
app.listen(3000);