4

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?

4

2 に答える 2

10

する必要がありますa(href="/job/#{job.ID}")

于 2013-01-15T14:45:52.887 に答える
8

これはうまくいきます:

a(href="/job/" + job.ID)
于 2013-01-17T12:20:18.600 に答える