cblanquera / cradle-handlebars
适用于Cradle的Handlebars
dev-master
2018-03-12 06:57 UTC
Requires
- cradlephp/framework: ~1.1.1
Requires (Dev)
- phpunit/phpunit: 5.7.9
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: 2.7.1
This package is auto-updated.
Last update: 2024-09-13 21:33:38 UTC
README
弃用通知:此项目已迁移至 https://github.com/CradlePHP/Cradle
cradle-handlebars
使用Swift Mailer处理Cradle的邮件
1. 要求
您应该当前使用CradlePHP的dev-master
版本。更多信息请参阅https://cradlephp.github.io/。
2. 安装
composer require cblanquera/cradle-handlebars
然后在/bootstrap.php
中添加
->register('cblanquera/cradle-handlebars')
3. 使用方法
$template = cradle('global')->handlebars()->compile('{{foo}}'); echo $template(array('foo' => 'bar'));
有关Handlebars的更多信息,请参阅https://handlebars.node.org.cn/。