We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a70fc1 commit dfc10a5Copy full SHA for dfc10a5
Views/Mustache.php
@@ -59,7 +59,7 @@ class Mustache extends \Slim\View
59
public function render($template)
60
{
61
require_once self::$mustacheDirectory . '/Autoloader.php';
62
- \Mustache_Autoloader::register();
+ \Mustache_Autoloader::register(dirname(self::$mustacheDirectory));
63
$m = new \Mustache_Engine();
64
$contents = file_get_contents($this->getTemplatesDirectory() . '/' . ltrim($template, '/'));
65
return $m->render($contents, $this->data);
0 commit comments