Dwoo implementation of PhpTransformer

1.0.0 2017-10-01 13:07 UTC

This package is auto-updated.

Last update: 2024-04-16 22:26:22 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.