mde / ejs

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

How to refresh the EJS page from the node server #636

Closed vinodhreddygs closed 2 years ago

vinodhreddygs commented 2 years ago

Hi, How can I update the new data to the EJS page (to the page which already rendered), on every DB update. I tried out with the below code snippet but its not updating the new data to the ejs page:

res.rerender('index', {
                data: orderdetails
            });

Thanks in advance.

mde commented 2 years ago

This is a problem with Express, or whatever Web framework you're using, not with EJS itself. You're better off submitting this question to the community for that Web framework.