Assuming that you already have WSL
installed in your windows.
- update Ubutu to it's latest version. Don't if you already have.
sudo
is equivalent to running asadministrator
sudo apt-get update
const express = require('express'); | |
const exphbs = require('express-handlebars'); | |
app.engine('.hbs', exphbs({extname: '.hbs'})); | |
app.set('view engine', '.hbs'); | |
// Now you can use `.hbs` as file extension for express-handlebars |