lilweb/coffeescript-bundle
Composer 安装命令:
composer require lilweb/coffeescript-bundle
包简介
An assetic filter for CoffeeScript in pure PHP implementation
README 文档
README
A Symfony2 bundle with an Assetic filter to use Coffeescript. There is no requirement on Nodejs for this bundle as the Coffeescript interpreter is a pure PHP implementation by @alxit.
Installation
Add the bundle to your composer.json :
... "lilweb/coffeescript-bundle" : "0.0.1", ...
And add the bundle to your AppKernel file :
new Lilweb\CoffeescriptBundle\LilwebCoffeescriptBundle()
Usage
In your twig file, use the coffeescript filter :
{% javascripts filter="coffeescript"
'@AcmeBundle/Resources/assets/coffee/main.coffee'
%}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
统计信息
- 总下载量: 1.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-10-31