'use-strict'; const express = require('express'); const mustache = require('mustache-express'); const path = require('path'); const app = express(); app.engine('html', mustache()); app.set('view engine', 'html'); app.set('views',path.join(__dirname, 'views')); app.use(express.static('default')); app.use(express.static('static')); app.get('/', (req, res) => { res.render('index.html', {yourdata: 'Hello from Mustache Template'}); }); const server = app.listen(8100, () => { const host = server.address().address; const port = server.address().port; console.log(`[${new Date()}] > App listening at http://%s:%s`, host, port); });