Dwoo implementation of PhpTransformer

1.0.0 2017-10-01 13:07 UTC

This package is auto-updated.

Last update: 2024-11-16 23:44:05 UTC


README

Dwoo support for PHPTransformers.

Install

Via Composer

$ composer require phptransformers/dwoo

Usage

$engine = new DwooTransformer();
echo $engine->render('Hello, {$name}!', array('name' => 'phptransformers'));

Options

$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
));

Testing

$ composer test

License

The MIT License (MIT). Please see License File for more information.