mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.76k stars 842 forks source link

[Question] Using async in .ejs files? #566

Open Xapu1337 opened 3 years ago

Xapu1337 commented 3 years ago

Hey, how can i use async in express.js views? im unable to find an option to enable async with "res.render" i also don't know how i can implement renderFile with my current structure.

Xapu1337 commented 3 years ago

(Please ignore any grammar errors. im sorry for them)

nichtich commented 3 years ago

There's option async. See the answers to this question for examples.