/string-template

StringTemplate support for PHPTransformers

Primary LanguagePHPMIT LicenseMIT

StringTemplate for PHPTransformers

StringTemplate support for PHPTransformers.

Install

Via Composer

$ composer require phptransformers/string-template

Usage

$engine = new StringTemplateTransformer(array('left_delimiter' => ':', 'right_delimiter' => '');
echo $engine->render('Hello, :name!', array('name' => 'phptransformers');

Testing

$ phpunit

License

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