title: Jade - Using Block inside script tag
body: <p>Hi there I'm trying using Jade's <strong>blocks</strong> and <strong>extends</strong> for a node.js project, and the ideia is to have something like this:</p>
  
  <p>layout.jade:</p>
  
  <pre><code>head
      script
          $(document).ready(function() {
          block js_doc_ready
              //here goes the doc ready
          });
  </code></pre>
  
  <p>index.jade:</p>
  
  <pre><code>block js_doc_ready
      alert('hello!');
      alert('one more js line code');
      alert('end my js doc ready for this view');
  </code></pre>
  
  <p>This would give me a index.html like this:</p>
  
  <pre><code>...
  &lt;head&gt;
      &lt;script type="text/javascript"&gt;
              $(document).ready(function() {
                  alert('hello!');
                  alert('one more js line code');
                  alert('end my js doc ready for this view');         
              });
      &lt;/script&gt;
  &lt;/head&gt;
  ...
  </code></pre>
  
  <p>But when I see the result, the <strong>'block js_doc_ready'</strong> is not considered a Jade block.
  Also, even if it was considered a block, the <strong>"alert('hello!);'</strong> wouldn't be considered a, but a Jade tag.</p>
  
  <p>This is something that I used to do in django template, but in jade with all this tags, and no liberty to do pure html I still find it a little too strange to make this things.</p>