src/Template/TwigRenderer.php
public function render($template, array $data = array(), $extension = 'twig')
    {
        $file = $template . '.' . $extension;

        return $this->twig->render($file, $data);
    }
public function render($template, array $data = array(), $extension = 'twig')
    {
        $file = $template . '.' . $extension;

        return $this->twig->render($file, $data);
    }
public function render ( $ template , array $ data = array ( ) , $ extension = 'twig' ) { $ file = $ template . '.' . $ extension ; return $ this -> twig -> render ( $ file , $ data ) ; }
Renders a template.

@param  string $template
@param  array  $data
@param  string $extension
@return string
Renders a template .