title: Rendering Jade template via AJAX and trying to pass/access data separate from the HTML
body: <p>I am rendering a Jade template on an ajax call via res.render with Express. Problem is I want to pass back some JSON vars or Javascript objects along with the HTML.</p>
  
  <p>Is this possible in an elegant way or at all? I know I can pass a script tag along with the HTML but I'm not sure how I can access those values directly within the 'data' response.</p>
  
  <p>Example here:</p>
  
  <pre><code>- var someNumber = 89
  h1 Hello World
  li #{someNumber}
  </code></pre>
  
  <p>Normally in a res.render() of this template on an ajax call you would get back</p>
  
  <pre><code>&lt;h1&gt; Hello Wolrd &lt;/h1&gt;
  &lt;li&gt; 89 &lt;/li&gt;
  </code></pre>
  
  <p>All in HTML format.</p>
  
  <p>How do I access one of the HTML nodes in the callback? Ideally with a jQuery selector, such as $('h1 li'). I need access to the number in the call back but it doesn't seem to be grabbing it. I'm thinking listener or adding a delay or maybe I need to assign it to a string and parse it out.</p>