jms/twig-js
最新稳定版本:1.0.4
Composer 安装命令:
composer require jms/twig-js
包简介
twig.js, flexible, secure, and high-performance templating engine for Javascript
关键字:
README 文档
README
[] Build Status
[
] Scrutinizer Code Quality
Twig.js is a PHP project that compiles Twig templates into executable Javascript for client-side execution. It is not to be confused with Twig.js, which is a pure Javascript implementation of the Twig templating language.
Twig Compatibility
Compatibility with vanilla PHP Twig is not yet at 100%. If you need your templates to work with both Twig.js and Twig, stick to the supported filters and functions described below.
Supported Filters
absbatchcapitalizedefaulteescapefirstjoinjson_encodekeyslastlengthlowermergenl2brrawreplacereversetitletrimupperurl_encode
Supported Functions
blockincludemaxminrandomrange
Incompatibilities
The following is a list of functionality present in Twig that is not yet available in Twig.js. There are some really easy pickings in these lists for anybody hoping to make a contribution to the project.
Unsupported Filters
convert_encodingdate(See pull request #11)date_modifyformatnumber_formatroundslicesortsplitstriptags
Unsupported Functions
attributeconstantcycledate(See pull request #11)dumpparentsourcetemplate_from_string
Testing
To run the tests, you'll need Composer, Node and NPM on your system.
$ make test
License
Twig.js is released under the Apache License, Version 2.0.
统计信息
- 总下载量: 388.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 359
- 点击次数: 2
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: Apache2
- 更新时间: 2012-05-23