Use leauge/plates with gluephp/glue
Use Composer:
$ composer require gluephp/glue-plates
$app = new Glue\App;
$app->config->override([
'plates' => [
'path' => '/absolute/path/to/templates/folder',
],
]);
$app->register(
new Glue\Plates\ServiceProvider()
);
Once the service provider is registered, you can fetch the Plates instance with:
$plates = $app->make('League\Plates\Engine');
or use the alias:
$plates = $app->plates;