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
button(type='button' class=' c-btn-blue c-btn-circle c-btn-uppercase' value="Read More" onclick='gotoBlog( #{val.link} )')
Error
1:8 Uncaught SyntaxError: Invalid or unexpected token
Changing it to !{val.link}
Error
Uncaught SyntaxError: Unexpected token .
Changing it to "!{val.link}"
and "#{val.link}"
just gives me string understandably so. BTW val.link is a string
Just giving val.link says Uncaught ReferenceError: val is not defined
I am out of options now. Help will be appreciated.
Thanks
val
? – Ashti