Sunday 14 May 2017

How to send data from EJS to node.js

I have an application in which I want to be able to read/write in a json file in real time. Basically I need to edit the file when the user clicks a button.

I know it's possible to read a json file from javascript with AJAX. It's obviously not possible to edit the file from the client side so I was wondering how I could do this from the server side in real time.

Is it possible to send data from EJS back to node.js?



via Mica Ménard

No comments:

Post a Comment