PHP handlebars.js Compiler and VM. Use with handlebars.c and php-handlebars.
Deprecated: Use php-handlebars instead
Via Composer
composer require jbboehr/handlebars
$handlebars = new Handlebars\Handlebars();
$fn = $handlebars->compile('{{foo}}');
echo $fn(array(
'foo' => 'bar',
));
echo $handlebars->render('{{foo}}', array(
'foo' => 'bar',
));
make test
This project is licensed under the LGPLv3. handlebars.js is licensed under the MIT license.