Permalink
Browse files

Merge branch 'develop'

  • Loading branch information...
2 parents 24429b2 + c61bfd9 commit 33d930cb03a6188f123a88416574039e55e3dce5 @silentworks silentworks committed Oct 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Views/Mustache.php
View
@@ -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

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

Collaborator

silentworks replied Oct 10, 2012

I will take care of this tomorrow.

Please sign in to comment.