Dwoo support for PHPTransformers.
Via Composer
$ composer require phptransformers/dwoo
$engine = new DwooTransformer();
echo $engine->render('Hello, {$name}!', array('name' => 'phptransformers'));
$engine = new DwooTransformer(array(
'cache-dir' => 'path/to/the/cache', // Default to the system temporary directory
'compile-dir' => 'path/to/the/compile/dir', // Default to the system temporary directory
'template-dir' => 'path/to/the/templates' // By default search for absolute path
));
// ...
$core = new \Dwoo\Core();
$engine = new DwooTransformer(array(
'dwoo' => $core // All others options are ignored
));
$ composer test
The MIT License (MIT). Please see License File for more information.