bt51/textile-serviceprovider

为 silex 提供的纺织服务提供商

1.1.0 2013-03-23 23:49 UTC

This package is not auto-updated.

Last update: 2024-09-14 13:47:32 UTC


README

TextileServiceProvider 为 silex 提供了 "netcarver/textile" 库。 注意: 1.0 分支跟踪 netcarver/textile 的 2.5.x 分支。1.1 和 master 分支跟踪 netcarver/textile 的 3.5.x 分支。

安装

在您的项目中创建一个 composer.json 文件

{
    "require": {
        "bt51/textile-serviceprovider": "dev-master"
    }
}

有关 composer 的更多信息,请参阅: https://getcomposer.org.cn

参数

  • textile.configuration:输出 doctype,可以是 'xhtml'(默认)或 'html5'

服务

  • textile:Textile 的实例

注册

请参阅 example/ 目录以了解如何注册服务

Twig

在 twig 扩展中也有注册了 twig 过滤器。请参阅 example/ 目录以获取更多有关如何使用它的信息。

许可证

MIT