bloge/jade-renderer

There is no license information available for the latest version (dev-master) of this package.

Jade renderer adapter for Bloge

dev-master 2015-12-02 16:17 UTC

This package is not auto-updated.

Last update: 2024-12-21 19:45:27 UTC


README

Jade – Haml-like template engine compiler for PHP. Jade renderer is adapter of Jade for Bloge.

Documentation

Jade renderer \Bloge\Renderers\Jade requires one argument absolute $path where templates are located and second optional argument $cache for specifying absolute path to cache (remember that this directory should be writable).

Example:

use Bloge\Renderers\Jade;

$renderer = new Jade(__DIR__ . '/theme', __DIR__ . '/cache');

Then you can plug this renderer into basic or advanced app:

use Bloge\Apps\BasicApp;

// ...

return new BasicApp($content, $renderer);