I'm beginner in Jade Engine and can't set value inside attribute. So, I have a similar code:
for job in jobs
tr
td
a(href="/job/= job.ID")= job.Title
= job.Title displays correctly, but I can't set job.ID. I need link with href like /job/12345, where 12345 is job.ID. How to do it?
should be a(href="/job/#{job.ID}")
This will work:
a(href="/job/" + job.ID)
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