I have a Jade page like so:
table
th Site Name
th Deadline
th Delete Transaction
- if (transactions != null)
each item in transactions
tr
td= item.item_name
td
span(id='countdown' + item.timeout + ')= item.timeout
td
span(style='cursor: pointer;', onclick='deleteTransaction("=item.uniqueId")')= "X"
button(id='confirmButton', onclick='confirm();')Confirm
As you can see in both the span
attribute I try to put a local variable in two different ways and it doesn't work. Concerning the first way, I receive a token ILLEGAL
error, while the second simply writes in my JavaScript something like deleteTransaction("=item.uniqueId");
. I know the answer is something really stupid, but again and again Jade doc (even if it has improved) doesn't help me.
Thanks