hjl / hjl_wkhtml
hjl wkhtml services of composer project!
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php: >=5.5.0
README
If you have specific PHP versions running:
git clone https://github.com/jbboehr/php-handlebars.git
cd php-handlebars
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make test
sudo make install
Add the extension to your php.ini:
echo extension=handlebars.so | tee -a /path/to/your/php.ini
Finally, restart the web server.
Usage
$vm = new Handlebars\VM();
echo $vm->render('{{foo}}', array('foo' => 'bar'));
echo $vm->renderFile('/path/to/foo.hbs', array('foo' => 'bar'));