ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 384 forks source link

A way to remove dynamic data and render the empty view template #284

Closed bowtiedalien closed 4 years ago

bowtiedalien commented 4 years ago

After posting dynamic data from a database to a view, is there a way to render the view template again without the dynamic data after a page refresh or something? By default, what happens is that data is added on top of each other in the view whenever I render something new. But I need to display data then remove it, then display something new in the next render. How can I do that? Is there a way to delete HTML tags after they become part of the view template?