I'm making an Expressjs app however I don't particularly want to use Jade. I installed UnderscoreJS successfully into my app so I can use its templating capabilities (as well as some of its other features).
My question is when I want to insert, for example, the current year into my html docs ( #{+new Date().getFullYear()}
in Jade), where should I do so?
Is it possible to insert into the HTML file directly or should I set a variable equal to the result in the routes file and then send it to a <%=year%>
tag in my html file?
As per my comment, EJS would be a good option I think.
You can also use Underscore with EJS - How can I use Underscore.js templates in conjunction with EJS?