I've looked around for a solution to this but haven't been able to find one. How can a param be added to a URL dynamically in EJS.
This is what I am trying to do
<form action="/user/<need dynamic id here>" method="PUT" id="add_count">
<button type="submit" class="btn text-dark update">Add</button>
</form>
Seems like it should be a pretty basic thing to be able to do with a templating engine.
EDIT
Just for more clarity, I want to make updates to items in a list directly from the index page. That is, clicking the add button for the specific item will update that item and return the new data without leaving the index page.
Is it possible to dynamically change data like this on an EJS template or is the data static after loading? I don't want to create a separate EJS template to load a single item, edit it there, update the item in the DB and then reload the entire index again.
If it is not possible, or incredibly hacky, with EJS I'll move on to another solution.