Skip to content

Commit 97e4858

Browse files
changing ejs to render regular html
Signed-off-by: Flynn Joffray <[email protected]> Change-type: patch
1 parent e76abf2 commit 97e4858

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/server.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ const favicon = require('serve-favicon')
44
const app = express()
55
const PORT = 80
66

7-
app.use(favicon(join(__dirname, '../views/public', 'favicon.ico')))
8-
app.set('views', join(__dirname, '../views'))
9-
app.set('view engine', 'ejs')
7+
app.use(favicon(join(__dirname, '..', 'views', 'public', 'favicon.ico')))
8+
app.set('views', join(__dirname, '..', 'views'))
9+
app.engine('html', require('ejs').renderFile)
10+
app.set('view engine', 'html')
1011

1112
// Enable the public directory for resource files
1213
app.use('/public', express.static(
File renamed without changes.

0 commit comments

Comments
 (0)