Is there a way I can use ejs and jade(I like both EJS and Jade and cannot decide which to use):
div
<% for(var i = 0; i<things.length; i++){ %>
<% = things[i] %>
span!=things[i] + " Hi"
<% } %>
And would the best way to do this to run it through jade then ejs?
Thanks,
Ari
div
each thing in things
!= thing
span!= thing + " Hi"
Alternative:
div
- for(var i = 0; i < things.length; i++){
!= things[i]
span!= things[i] + " Hi"
- }
I would suggest using jade. I think that it's far more comfortable and you can generate much html with very little jade code.