title: Include Twig with multiple parameters
body: <h3>Is there a way to include a Twig-template with more than one parameter?</h3>
  
  <p>I tried this, but it didn't work:</p>
  
  <p>The following Twig is rendered by my Symfony Controller:</p>
  
  <pre><code>{% for object in objects %}
          {% if object.type == "simple" %}
                 {% include 'BBLWebBundle:content:simple.html.twig' 
                  with [{'picture': object.picture}, {'link': object.link}, {'name': object.name}, {'info': object.info}] %}
  
          {% elseif object.type == "mp3" %}
                  {% include 'BBLWebBundle:content:mp3.html.twig'
                  with [{'picture': object.picture}, {'link': object.link}, {'name': object.name}, {'info': object.info}] %}
  
          {% elseif object.type == "video" %}
                  {% include 'BBLWebBundle:content:video.html.twig' 
                  with [{'picture': object.picture}, {'link': object.link}, {'name': object.name}, {'info': object.info}] %}
          {% endif %}
  {% endfor %}    
  </code></pre>
  
  <p>The Controller also passes some parameters (this is just some Dummy-Data):</p>
  
  <pre><code>    $objects['ob1']['type'] = "simple";
      $objects['ob1']['picture'] = "this is a picture";
      $objects['ob1']['link'] = "#";
      $objects['ob1']['info'] = "Oh wooow some Info";
      $objects['ob1']['name'] = "Potato";
      return $this-&gt;render('BBLWebBundle:Base:content.html.twig',
              array('objects' =&gt; $objects, 'title' =&gt; "Im very cool Title"));
  </code></pre>
  
  <p>This is one Twig-template which should be included:</p>
  
  <pre><code>&lt;div&gt;{{ picture }}&lt;/div&gt; 
  &lt;div&gt;&lt;a href="{{ link }}"&gt; &lt;h3&gt;{{ name }}&lt;/h3&gt;&lt;/a&gt;&lt;br /&gt;{{ info }}&lt;br /&gt;&lt;/div&gt;
  </code></pre>