widmogrod/zf2-mustache-module
Composer 安装命令:
composer require widmogrod/zf2-mustache-module
包简介
Zend Framework 2 module providing integration with the Mustache rendering engine.
README 文档
README
Summery
Zend Framework 2 module providing integration with mustache.php rendering engine
Requirements
- Zend Framework 2 (https://github.com/zendframework/zf2). Tested on Zend Framework 2.0.0rc6.
Installation
Composer installation
-
cd my/project/directory -
create a
composer.jsonfile with following content:{ "require": { "widmogrod/zf2-mustache-module": "dev-master" } } -
run
php composer.phar install -
open my/project/folder/configs/application.config.php and add 'Mustache' to your 'modules' parameter.
How to add Mustache rendering to ZF2
Add to your Application module config file (module.config.php) new rendering strategy as following:
<?php return array( 'view_manager' => array( // add this 'strategies' => array( 'Mustache\View\Strategy' ), ), );
How to configure partials
Add to your Application module config file (module.config.php)
<?php return array( 'mustache' => array( 'partials_loader' => array( __DIR__ . '/../view/partials') ), );
统计信息
- 总下载量: 19.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2012-10-16