I have the following in my Jade view:
- var items = "one"
each item in items
div(id= #{items})
what I want is:
<div id="one"></div>
but Jade renders:
<div id="undefinedoneundefined"></div>
this is driving me crazy, I'm using Jade with Express.js.
BTW I've asked something similar but less clear, hope not to annoy anyone with my silliness.
Something like this?
- var items = ["one", "two", "three"]
each item in items
div(id= item)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With