Skip to content

Commit

Permalink
Merge pull request #3 from legalthings/fix-mustache-engine
Browse files Browse the repository at this point in the history
Add mustache engine
  • Loading branch information
svenstm committed Mar 22, 2016
2 parents 7c6ed91 + f96a906 commit 62cc78d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"php": ">=5.5.0",
"mtdowling/jmespath.php": "^2.2",
"guzzlehttp/guzzle": "^6.0",
"jasny/dotkey": "^1.0"
"jasny/dotkey": "^1.0",
"mustache/mustache": "^2.10"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
Expand Down
2 changes: 1 addition & 1 deletion src/DataEnricher/Mustache.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function applyTo(&$target)
*/
protected function parse($template)
{
$mustache = new Mustache_Engine();
$mustache = new \Mustache_Engine();
return $mustache->render($template, $this->source);
}
}

0 comments on commit 62cc78d

Please sign in to comment.