25/05
2017
dev-master
9999999-devAllows you to use Mustache in Slim 3.
MIT
The Requires
The Development Requires
by nic
Wallogit.com
2017 © Pedro Peláez
Allows you to use Mustache in Slim 3.
Adds support for MustachePHP for rendering views in Slim 3., (*1)
composer require nic-d/slim3-mustache
// Instantiate Mustache and add to the container
$container['view'] = function ($container) {
$view = new \Slim\Views\Mustache([
'loader' => new Mustache_Loader_StringLoader(),
]);
return $view;
};
You can also fetch the Mustache instance by using:, (*2)
$container->get('view')->getMustache();
PHPUnit 6.0 or greater required., (*3)
phpunit
Allows you to use Mustache in Slim 3.
MIT