title: filter twig passing variables
body: <p>I am doing a twig filter and want to do something like this:</p>
  
  <pre><code>{{'&lt;p&gt; hello {{name}} &lt;/p&gt;' | try ("loksea") }}
  </code></pre>
  
  <p>but not have access to var name. first access to name and then second parse filter. its my filter method:</p>
  
  <pre><code>public function getFilters()
  {
      return array(
           'try'  =&gt; new \Twig_Filter_Method($this, 'tryFilter',array('is_safe' =&gt; array('html')))
      );
  }
  
  public function tryFilter($value,$otro)
  {
      return '&lt;h1 ' . 'id="' .$otro.'"&gt;'.$value .'&lt;/h1&gt;';
  }
  
  public function getName()
  {
      return 'demo';
  }
  </code></pre>
  
  <p>thanks.</p>