johnpbloch/micro-twig
最新稳定版本:1.0.2
Composer 安装命令:
composer require johnpbloch/micro-twig
包简介
Twig templates for MicroMVC Library's Views
关键字:
README 文档
README
MicroTwig is an extension for the Micro framework libraries. It connects Micro to the Twig templating library.
Use
To use, first make sure your templates will work in Twig. Then, when you need to use a view, instantiate the MicroTwig view:
// You only need to set $directory once \MicroTwig\View::$directory = '/path/to/your/views'; $view = new \MicroTwig\View('Layout');
License
MicroTwig is released under the MIT license.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-18