cblanquera/cradle-handlebars

Handlebars for Cradle

dev-master 2018-03-12 06:57 UTC

This package is auto-updated.

Last update: 2024-10-13 21:40:25 UTC


README

Deprecation Notice: This project has been moved to https://github.com/CradlePHP/Cradle

cradle-handlebars

Mail Handling for Cradle with Swift Mailer

1. Requirements

You should be using CradlePHP currently at dev-master. See https://cradlephp.github.io/ for more information.

2. Install

composer require cblanquera/cradle-handlebars

Then in /bootstrap.php, add

->register('cblanquera/cradle-handlebars')

3. Usage

$template = cradle('global')->handlebars()->compile('{{foo}}');
echo $template(array('foo' => 'bar'));

See http://handlebarsjs.com/ for more information about handlebars.