diff --git a/Views/Mustache.php b/Views/Mustache.php index 6b14b2d..059bdb0 100644 --- a/Views/Mustache.php +++ b/Views/Mustache.php @@ -62,6 +62,6 @@ public function render($template) \Mustache_Autoloader::register(dirname(self::$mustacheDirectory)); $m = new \Mustache_Engine(); $contents = file_get_contents($this->getTemplatesDirectory() . '/' . ltrim($template, '/')); - return $m->render($contents, $this->data); + return $m->render($contents, $this->data->all()); } }