title: Flask/Jinja2: Macro calling macro with context
body: <p>I have a template that contains some macros:</p>
  
  <pre><code>{% macro input(id, editable=current_user.is_active) %}
    ... some content ...
  {% endmacro %}
  
  {% macro the_form() %}
    {{input('id1')}}
    {{input('id2', False)}}
  {% endmacro %}
  </code></pre>
  
  <p>Then I want to use those macros in another template:</p>
  
  <pre><code>{% from 'forms.html' import the_form with context %}
  
  {{ the_form() }}
  </code></pre>
  
  <p>But I always get an error, <code>name 'l_current_user' is not defined</code>.</p>
  
  <p>Why is that <code>l_current_user</code> and not <code>current_user</code>?</p>
  
  <p>And how can I give nested macros access to the <code>current_user</code> variable?</p>