title: How to pass value to a onclick function in (Jade)pug?
body: <p>I am new to jade and stuck on this issue. I think I have tried everything from the StackOverflow posts and still at nothing. </p>
  
  <p>The things I have tried  </p>
  
  <pre><code>button(type='button' class=' c-btn-blue c-btn-circle c-btn-uppercase' value="Read More" onclick='gotoBlog( #{val.link} )')
  </code></pre>
  
  <p>Error   </p>
  
  <pre><code>1:8 Uncaught SyntaxError: Invalid or unexpected token
  </code></pre>
  
  <p>Changing it to <code>!{val.link}</code></p>
  
  <p>Error </p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token .
  </code></pre>
  
  <p>Changing it to <code>"!{val.link}"</code> and <code>"#{val.link}"</code> just gives me string understandably so. BTW val.link is a string</p>
  
  <p>Just giving val.link says <code>Uncaught ReferenceError: val is not defined</code></p>
  
  <p>I am out of options now. Help will be appreciated.</p>
  
  <p>Thanks </p>