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
I just used the code below and it worked for me (with pre and pos quotes)
button(type='button', onclick='someFunction("'+ yourObject.id +'")' ) PressMe