bloge / twig-renderer
There is no license information available for the latest version (dev-master) of this package.
Twig renderer adapter for Bloge
dev-master
2015-12-02 16:32 UTC
Requires
- bloge/bloge: dev-master
- twig/twig: ^1.23
This package is not auto-updated.
Last update: 2024-12-21 20:08:35 UTC
README
Twig – Smarty-like template engine compiler for PHP. Twig renderer is adapter of Twig for Bloge.
Documentation
Twig renderer \Bloge\Renderers\Twig
requires one argument absolute $path
where templates are located and second optional argument $options
is array for
specifying additional options to Twig.
Example:
use Bloge\Renderers\Twig; $renderer = new Twig(__DIR__ . '/theme', [ 'cache' => __DIR__ . '/cache' ]);
Then you can plug this renderer into basic or advanced app:
use Bloge\Apps\BasicApp; // ... return new BasicApp($content, $renderer);