tj / ejs

Embedded JavaScript templates for node
4.47k stars 513 forks source link

stalling .render #255

Closed elig0n closed 4 years ago

elig0n commented 4 years ago

version: ejs 3.1.5 nodejs + express

Using:

app.set('view engine', 'ejs')
res.render("page", {data1: data1, data2: data2, ... })

rendering can take indefinite amount of time, but quitting node or typing 'rs' on nodemon at any time will cause the page to be rendered immediately.

elig0n commented 4 years ago

Solved by not doing res.end() after .render()