title: Timber Wordpress (TWIG) - Dynamic Sidebar
body: <p>I am net to Timber and TWIG.
  I can't get the <strong>dynamic sidebar</strong> to show up. My goal is for the content to only show up if there is a <strong>dynamic sidebar</strong> and you are on the <strong>front-page.php</strong>. Currently it tells me that there is widget area, however I am not on the correct page. I am sure that <strong>front-page.php</strong> is getting rendered however.
  I am working with the <a href="https://github.com/timber/starter-theme" rel="nofollow noreferrer"><strong>Timber starter theme (Github)</strong></a> for Wordpress as a base.
  I can get the Widgets to show, if I add the code directly which I commented out in the <strong>front-page.twig</strong></p>
  
  <p><strong>sidebar.php</strong></p>
  
  <pre><code>#Timber::render( array( 'sidebar.twig' ), $data ); if i understand right, i can remove this?
  
  $context = array();
  $context['dynamic_sidebar'] = Timber::get_widgets('home_sidebar');
  Timber::render('sidebar.twig', $context);
  </code></pre>
  
  <p><strong>functions.php</strong> i added this to the end of the file:</p>
  
  <pre><code>function custom_widgets_init() {
  
      register_sidebar( array(
          'id'          =&gt; 'home_sidebar',
          'name'        =&gt; __( 'Dynamic Sidebar 1', $text_domain ),
          'description' =&gt; __( 'This sidebar is located on the left side of the content.', $text_domain ),
      ) );
  }
  add_action( 'widgets_init', 'custom_widgets_init' );
  </code></pre>
  
  <p><strong>font-page.twig</strong></p>
  
  <pre><code>{% extends "base.twig" %}
  
  {# STUFF #}
  
  {% block sidebar_area %}
  
          &lt;aside&gt;
              {{dynamic_sidebar}}
              {# {% do function('dynamic_sidebar', 'dynamic-sidebar-1') %} THIS HOWEVER WORKS #}
          &lt;/aside&gt;
  
  {% endblock %}
  </code></pre>
  
  <p><strong>sidebar.twig</strong> : is currently empty</p>