johnpbloch/micro-twig 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-18