Skip to content

Instantly share code, notes, and snippets.

@NikhilNanjappa
Last active February 12, 2022 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NikhilNanjappa/b95dbd2e1a75ab0dd1e66539c9c54d94 to your computer and use it in GitHub Desktop.
Save NikhilNanjappa/b95dbd2e1a75ab0dd1e66539c9c54d94 to your computer and use it in GitHub Desktop.
GDS Demo partial app.js
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