Answers.Body: <p>Yes, see the block tags docs. <a href="http://twig.sensiolabs.org/doc/tags/extends.html#block-nesting-and-scope" rel="nofollow">http://twig.sensiolabs.org/doc/tags/extends.html#block-nesting-and-scope</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-05T19:16:26.667Z
Answers.LastActivityDate: 2016-03-05T19:16:26.667Z
Answers.UserDisplayName: carlcs
Body: <p>I lazily added the following to my parent site template:</p>
  
  <pre><code>{% block body %}
      {% block content %}
      {% endblock %}
  {% endblock %}
  </code></pre>
  
  <p>Is this 'allowed' in Twig ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-01T16:53:13.183Z
Comments.Text: Question title asks if it's a problem, body asks if it's allowed. Accepted answer says "Yes, see here". Will someone either edit the title to reflect permissibility, or the body and answer to reflect, err... problematicability? And yes, I just invented that word.
Comments.UserDisplayName: Sandwich
Tags: <templating>
Title: Nesting blocks - is the following problematic?
ThreadText: # Nesting blocks - is the following problematic?
  
  (Asked by: username_0 on 2016-03-05)
  
  I lazily added the following to my parent site template:
  
  ```
  {% block body %}
      {% block content %}
      {% endblock %}
  {% endblock %}
  
  ```
  
  Is this 'allowed' in Twig ?
  
  **Tags:** templating
  
  > **Comments:**
  > **username_1**: Question title asks if it's a problem, body asks if it's allowed. Accepted answer says "Yes, see here". Will someone either edit the title to reflect permissibility, or the body and answer to reflect, err... problematicability? And yes, I just invented that word.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-03-05. Score: 3 | Accepted answer
  
  Yes, see the block tags docs. <http://twig.sensiolabs.org/doc/tags/extends.html#block-nesting-and-scope>
  
  
  ---
  
  