title: Jekyll templates using django-like liquid blocks / inheritance
body: <p>I'm getting into Jekyll in a big way and would like to use it as a general front-end development platform, but am running up against the limitations of the Liquid templating language, specifically its difference to Django templating.</p>
  
  <p>I discovered the liquid-inheritance gem, which adds the all-important Extends and Block syntax from Django. This blog post extends the gem further to suit Jekyll's file system:
  <a href="http://www.sameratiani.com/2011/10/22/get-jekyll-working-with-liquid-inheritance.html">http://www.sameratiani.com/2011/10/22/get-jekyll-working-with-liquid-inheritance.html</a></p>
  
  <p>The problem is that it doesn't appear to implement blocks in exactly the same way Django does, which essentially renders the gem useless.</p>
  
  <p>I have two jekyll "layouts" called - for the sake of understanding - parent.html and child.html. Neither of these contain YAML sections.</p>
  
  <p>Parent</p>
  
  <pre><code>&lt;html&gt;
  {% block foo %} {% endblock %}
  &lt;/html&gt;
  </code></pre>
  
  <p>Child</p>
  
  <pre><code>{% extends _layouts/parent.html %}
  {% block foo %}
    &lt;div&gt;
      Bar comes next:
      {% block bar %} {% endblock %}
    &lt;/div&gt;
  {% endblock %}
  </code></pre>
  
  <p>And then I have a jekyll page which includes a YAML section thus:</p>
  
  <pre><code>---
  title: test
  ---
  
  {% extends _layouts/child.html %}
  {% block bar %}My title is {{ page.title }} {% endblock %}
  </code></pre>
  
  <p>What I'd expect:</p>
  
  <pre><code>&lt;html&gt;
    &lt;div&gt;
      Bar comes next:
      My title is test
    &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I get:</p>
  
  <pre><code>&lt;html&gt;
    &lt;div&gt;
      Bar comes next:
    &lt;/div&gt;
  &lt;/html&gt;My title is test
  </code></pre>
  
  <p>It seems something is failing to treat the blocks in mypage.html as being eligible for insertion into the suitable places of parent/child, although it's clearly still doing something.</p>
  
  <p>I'm not a ruby developer and am reasonably new to Jekyll, so I need help identifying what part of this stack is failing. The liquid-inheritance issues on github suggest others are experiencing this block nesting problem: <a href="https://github.com/danwrong/liquid-inheritance/issues/3">https://github.com/danwrong/liquid-inheritance/issues/3</a></p>
  
  <p>I've tried several of the forks of liquid-inheritance, many of which apparently fix that problem regex, but none seem to solve this.</p>
  
  <p>Is what i'm tring to do fundamentally impossible? It seems like I'm at least 85% of the way there and the final bit needs fixing.</p>