I am new to jade and stuck on this issue. I think I have tried everything from the StackOverflow posts and still at nothing.
The things I have tried
You just need to put onclick="myfunction(#{varible.atributo})"
Here a example:
table thead tr th #ID th Description th Actions tbody each item, i in itemlist tr th(scope='row') #{item.id} td #{item.description} td button(onclick="editItem(#{item.id})", title="Edit") | Edit