0

I have a variable I am sending to the client side via res.render().

My question is if I have an external JS file that I use for that HTML page, how can I grab the EJS variables that I had send via res.render().

Thanks!

farhan
  • 335
  • 2
  • 13
  • 1
    Possible duplicate of [Accessing EJS variable in Javascript logic](https://stackoverflow.com/questions/11289793/accessing-ejs-variable-in-javascript-logic) – nikos fotiadis Sep 12 '18 at 11:30
  • How about using EJS to pass through variables, you import external JS into the `res.render()` file? – Felix Fong Sep 12 '18 at 11:32

0 Answers0