title: How can I access template variable in TWIG macro?
body: <p>I'm not able to access template variable in TWIG macro.</p>
  
  <p>Here is a simplified example:</p>
  
  <pre><code>{% set myname = "Ligio" %}
  {{ _self.pagedurl(1) }}
  
  {% macro pagedurl(page) %}
      Hi {{ _self.myname }}! This is Page Num {{ page }}
  {% endmacro %}
  </code></pre>
  
  <p>How can I access the variable <strong>myname</strong> without passing it to the macro?</p>