Here is the way you would do that with ejs:
<p><a href="<%= link %>" class="btn btn-primary" role="button">Download</a></p>
res.render('index.ejs', { link: "<your link here>" });
Hope this helps!