mirror of
https://github.com/italicsjenga/handlebars-ipinfo.git
synced 2024-11-24 05:21:29 +11:00
13 lines
293 B
TypeScript
13 lines
293 B
TypeScript
import express = require('express');
|
|
import expresshb = require('express-handlebars');
|
|
|
|
var app = express();
|
|
|
|
app.engine('handlebars', expresshb({defaultLayout: 'main'}));
|
|
app.set('view engine', 'handlebars');
|
|
|
|
app.get('/', function (req, res) {
|
|
res.render('home');
|
|
});
|
|
|
|
app.listen(3000); |