src/View/TwigView.php
public function get($path, $template = '', $vars = array(), $globalScriptVars = '') {

        if ($template !== '') {
            $this->setTemplate($template);
        }


        //If exists vars to assign, we assing one by one.
        $viewVars = (count($vars) > 0) ? $vars : $this->viewVars;

        //Include the style if exists some style to include
        if (isset($this->styles)) {
            $vars['styles'] = $this->styles;
        }

        return $this->twig->render('html/'.$path, $viewVars);
    }
public function get($path, $template = '', $vars = array(), $globalScriptVars = '') {

        if ($template !== '') {
            $this->setTemplate($template);
        }


        //If exists vars to assign, we assing one by one.
        $viewVars = (count($vars) > 0) ? $vars : $this->viewVars;

        //Include the style if exists some style to include
        if (isset($this->styles)) {
            $vars['styles'] = $this->styles;
        }

        return $this->twig->render('html/'.$path, $viewVars);
    }
[get description]
@param  [type] $path             [description]
@param  string $template         [description]
@param  array  $vars             [description]
@param  string $globalScriptVars [description]
@return [type]                   [description]