I use nodejs + express, as a template engine - ejs. Question: can I somehow transfer data from this client js to this template engine? That is, something like this should come out: var someVar = someData
and then in the html file <%= someVar %>
.
|
res.render('index', {someVar: 'someVal'})
. And how can I transfer a variable from client js? Is it possible? - Veneomin