glaubinix/silex-twig-engine 问题修复 & 功能扩展

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

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

glaubinix/silex-twig-engine

最新稳定版本:2.1

Composer 安装命令:

composer require glaubinix/silex-twig-engine

包简介

TwigEngine service provider for silex

README 文档

README

Build status: Build Status

There are a couple of symfony components out there which depend on the EngineInterface rather then depending on a specific template engine. This allows users with a different template engine to use the features too -> YaY

Installation

The easiest way to install this library is to use Composer. Add the package "glaubinix/silex-twig-engine" to your composer.json.

{
    "require": {
        "glaubinix/silex-twig-engine": "@stable"
    }
}

Usage

// Register the twig service provider
$app->register(new \Silex\Provider\TwigServiceProvider(),
    [
    // your twig config
    ]
);

// Register the twig service provider
$app->register(new \Glaubinix\TwigEngine\TwigEngineServiceProvider());

// The engine is now available under the same identifier as in symfony
$app['templating']->render('template', []);

License

MIT

统计信息

  • 总下载量: 110
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-05