Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'develop'

  • Loading branch information...
commit 33d930cb03a6188f123a88416574039e55e3dce5 2 parents 24429b2 + c61bfd9
@silentworks silentworks authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Views/Mustache.php
View
6 Views/Mustache.php
@@ -58,10 +58,10 @@ class Mustache extends \Slim\View
*/
public function render($template)
{
- require_once self::$mustacheDirectory . '/Mustache.php';
- $m = new \Mustache();
+ require_once self::$mustacheDirectory . '/Autoloader.php';
+ \Mustache_Autoloader::register(dirname(self::$mustacheDirectory));
+ $m = new \Mustache_Engine();
$contents = file_get_contents($this->getTemplatesDirectory() . '/' . ltrim($template, '/'));
-
return $m->render($contents, $this->data);
}
}

2 comments on commit 33d930c

@wiltave

When will these changes be available through Composer? I am not talking about the dev-master version ...
Thank you.

@silentworks
Collaborator

I will take care of this tomorrow.

Please sign in to comment.
Something went wrong with that request. Please try again.