gluephp / glue-plates
Use leage/plates templating engine in Glue
0.1.2
2016-12-30 05:03 UTC
Requires
- php: >=5.5.0
- league/plates: ^3.1
This package is not auto-updated.
Last update: 2025-01-30 03:03:48 UTC
README
Use leauge/plates with gluephp/glue
Installation
Use Composer:
$ composer require gluephp/glue-plates
Configure Plates
$app = new Glue\App; $app->config->override([ 'plates' => [ 'path' => '/absolute/path/to/templates/folder', ], ]);
Register Plates
$app->register( new Glue\Plates\ServiceProvider() );
Get the Plates instance
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;