diff --git a/Views/Twig.php b/Views/Twig.php index c2feb41..7e3a819 100644 --- a/Views/Twig.php +++ b/Views/Twig.php @@ -91,7 +91,7 @@ private function getTemplateDirs() * @param string $template The path to the Twig template, relative to the Twig templates directory. * @return void */ - public function render($template) + public function render($template, $data = null) { $env = $this->getEnvironment(); $template = $env->loadTemplate($template);