I want to make href tag dynamic and value will be populated and i have ejs template I want to make href tag dynamic and value will be populated and i have ejs template express express

I want to make href tag dynamic and value will be populated and i have ejs template


Here is the way you would do that with ejs:

index.ejs

<p><a href="<%= link %>" class="btn btn-primary" role="button">Download</a></p>

app.js

res.render('index.ejs', { link: "<your link here>" });

Hope this helps!