Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Oct 6, 2012
2 parents 24429b2 + c61bfd9 commit 33d930c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Views/Mustache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link

@wiltave wiltave commented on 33d930c Oct 9, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@silentworks
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will take care of this tomorrow.

Please sign in to comment.