title: How do you use a logic block within an element?
body: <p>As a newbie to the pugjs/jade template world I'm having a few issues.</p>
  
  <p>Here is the fragment that isn't working as I want, expect, etc.:</p>
  
  <pre><code>div
    if typeof val == 'object'
      / call some mixin
    else
      #{val}
  </code></pre>
  
  <p><code>#{val}</code> ends up creating a new element from the content of <code>val</code>. I do not want this. I want the body of <code>div</code> to be the evaluation of <code>val</code>.</p>
  
  <p>Version:</p>
  
  <p><code>"pug": "^2.0.0-beta3"</code></p>