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?
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?
Share Improve this question asked Jan 15, 2013 at 14:17 Oleg ShOleg Sh 9,01320 gold badges104 silver badges177 bronze badges2 Answers
Reset to default 10should be a(href="/job/#{job.ID}")
This will work:
a(href="/job/" + job.ID)