Skip to content

gluephp/glue-plates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plates for Glue

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;

About

Plates adapter for gluephp/glue

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages