title: Jinja2 variables in included template
body: <p>I have parent template where settings variable and this template includes couple of other sub-templates where I want to reuse this variable. Unfortunately in children templates this variable is empty. How to fix it?</p>
  
  <pre><code>&lt;!-- index.html --&gt;
  {%- set title= ' :: '.join((caption, page_title or '')) -%}
  {%- set description= ' :: '.join((desc, meta_desc or '')) -%}
  {%- block page_header -%}
    {% include 'parts/_header.html' %}
  
    &lt;!-- I also tried do it with context without luck --&gt;
    {% include 'parts/_header.html' %}
  {%- endblock page_header -%}
  
  
  
  &lt;!-- parts/header.html --&gt;
  &lt;header class="header-wrapper"&gt;
    &lt;div class="header"&gt;
      &lt;div class="title"&gt;&lt;h1 class="title"&gt;{{ title|safe }}&lt;/h1&gt;&lt;/div&gt;
      &lt;div class="description"&gt;{{ description|safe }}&lt;/div&gt;
    &lt;/div&gt;
  &lt;/header&gt;
  </code></pre>
  
  <p><strong>UPD:</strong> After small research I found that issue related to <code>{% block %}</code> section - in <code>include</code> tag is outside <code>block</code> then it is provided with document context. But for some reasons I'd like to keep it inside <code>block</code>.</p>