frizzy/slim-twig-extension
Composer 安装命令:
composer require frizzy/slim-twig-extension
包简介
Twig extension for the Slim framework
README 文档
README
Usage
Add the following to your root composer.json file:
{
"require": {
"frizzy/slim-twig-extension": "0.1.*"
}
}
Add the extension to your Twig environment:
<?php
$twig = new \Twig_Environment(new \Twig_Loader_Filesystem(...));
$twig->addExtension(new \Frizzy\Slim\Twig\Extension);
?>
Functions available in Twig:
- render_route_name
- render_route_path
- render_template
- path
- url
统计信息
- 总下载量: 144
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-19