Last active
February 6, 2021 18:49
-
-
Save NikhilNanjappa-zz/92f8639bb0cb17e383c4053b84b1f63d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const nunjucks = require('nunjucks') | |
const path = require('path') | |
nunjucks.configure([ | |
path.join(__dirname, 'node_modules/govuk-frontend/'), | |
path.join(__dirname, 'app/views/') | |
], { | |
autoescape: true, | |
express: app, | |
noCache: true, | |
watch: true | |
}) | |
app.set('view engine', 'html') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment