I want to capture the value from a variable that it is sent from NodeJS route to a view. I know that the way to get this value on HTML (Jade) is:
#{name_var}
But I want to get this value in JS (JQuery) and the only way that I can think is by DOM (for example: create a div with this value that it is hidden and later, get the value by getElementById).
But I think that this data that I send to the view are delicated, it could be have a great security problem...
What do you think? Are there any other 'alternative' for this? Thank you.