diff --git a/src/Blade.php b/src/Blade.php index 0608a67..b273ddb 100644 --- a/src/Blade.php +++ b/src/Blade.php @@ -54,13 +54,12 @@ public function render($template, $data = null) public function getInstance() { if (!$this->parserInstance) { - $views = $this->getTemplatesDirectory().'/'; if(isset($this->parserOptions['cache'])) { $cache = $this->parserOptions['cache']; } else { throw new \RuntimeException('Cannot set the Blade cache directory'); } - $this->parserInstance = new \Philo\Blade\Blade($views, $cache); + $this->parserInstance = new \Philo\Blade\Blade($this->templatesDirectory, $cache); } return $this->parserInstance;