src/Rakit/Slimmy/TwigView.php
public function render($template, $data = null)
    {
        $twig = $this->getTwig();
        $parser = $twig->loadTemplate($template);

        return $parser->render($this->all(), $data);
    }
public function render($template, $data = null)
    {
        $twig = $this->getTwig();
        $parser = $twig->loadTemplate($template);

        return $parser->render($this->all(), $data);
    }
public function render ( $ template , $ data = null ) { $ twig = $ this -> getTwig ( ) ; $ parser = $ twig -> loadTemplate ( $ template ) ; return $ parser -> render ( $ this -> all ( ) , $ data ) ; }
Custom render method
@param string template filename to render
@param array data
Custom render method