I have some data (which were retrieved using node.js ) that I have to use in the client side, particularly with the view.
Can I do that using (non verbatim):
res.sendFile(*html file*, *JSON data i need to send*)
It does work, but I want to know why or why not this is a good idea.
also, I’ve learned to do that from here