Last active
February 12, 2022 14:27
-
-
Save NikhilNanjappa/b95dbd2e1a75ab0dd1e66539c9c54d94 to your computer and use it in GitHub Desktop.
GDS Demo partial app.js
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