phptransformers/plates
Composer 安装命令:
composer require phptransformers/plates
包简介
Plates implementation of PhpTransformer
README 文档
README
Plates support for PHPTransformers.
Install
Via Composer
$ composer require phptransformers/plates
Usage
$engine = new PlatesTransformer(); echo $engine->render('Hello, {$name}!', array('name' => 'phptransformers'));
Options
$engine = new PlatesTransformer(array( 'directory' => 'path/to/the/templates', // Default to the current working directory 'extension' => 'plates' // Extensions of templates files (default to no extention filtering) )); // ... $plates = new \League\Plates\Engine(); $engine = new PlatesTransformer(array( 'plates' => $plates // All others options are ignored ));
Testing
$ composer test
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-29