title: Twig display function
body: <p>I cant quite get a hold of Twig really. I want to just simply display a function in a twig file but nothing is shown. My function: </p>
  
  <pre><code>public function ratings(){
          $overall_vote_rows = $blog_vote_overall_rows;
          $overall_vote_rate = $blog_vote_overall_rate;
          $overall_vote_dec_rate = $blog_vote_overall_dec_rate;
          $ip_vote_rate = $blog_vote_ip_rate;
  
      echo '&lt;input type="hidden" name="blog_content_id" id="blog_content_id" value="1"/&gt;';
                  $stars = '';
                  echo '&lt;div id="ajax_vote"&gt;';
                  for ($i = 1; $i &lt;= floor($overall_vote_rate); $i++) {
                      $stars .= '&lt;div class="star" id="' . $i . '"&gt;&lt;/div&gt;';
                  }
                  //THE OVERALL RATING (THE OPAQUE STARS)
                  echo '&lt;div class="r"&gt;&lt;div class="rating"&gt;' . $stars . '&lt;/div&gt;';
  
                  //THE TRANSPARENT STARS (OPAQUE STARS WILL COVER AS MANY STARS AS THE RATING REPRESENTS)
                  echo '&lt;div class="transparent"&gt;
              &lt;div class="star" id="1"&gt;&lt;/div&gt;
              &lt;div class="star" id="2"&gt;&lt;/div&gt;
              &lt;div class="star" id="3"&gt;&lt;/div&gt;
              &lt;div class="star" id="4"&gt;&lt;/div&gt;
              &lt;div class="star" id="5"&gt;&lt;/div&gt;
              &lt;div class="votes"&gt;(' . $blog_vote_overall_dec_rate . '/5, ' . $overall_vote_rows . ' ' . ($overall_vote_rows &gt; 1 ? ' votes' : ' vote') . ') ' . ($blog_vote_ip_rate &gt; 0 ? '&lt;strong&gt;You rated this: &lt;span style="color:#39C;"&gt;' . $blog_vote_ip_rate . '&lt;/span&gt;&lt;/strong&gt;' : '') . '&lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;';
                  echo '&lt;/div&gt;';      
  
      $this-&gt;twig-&gt;display('boat/boat_list.twig',$data);
  </code></pre>
  
  <p>Now when i try to display the function it wont show up. i guess i completly missunderstand the principle as such since even trough reading in the documentation im to simple minded to get it.</p>
  
  <pre><code>{{ratings}}
  </code></pre>
  
  <p>shouldnt this do the trick?</p>
  
  <p>Thanks in advance. Id love to just use the php code since i cant figure how to properly translate it into the twig syntax.</p>