I am trying to create an ejs conditional based on a URL parameter, for example, if the test parameter exists at localhost:3000/page?test, then show a div, else dont show it.
just the send the stuff in the form of query which can be easily retrieved
app.get('/category', function(req, res) { var string = stuff res.redirect('/?valid=' + string); });
In the ejs template you can directly use parameter name
<% var k = valid %>