lilweb / coffeescript-bundle
An assetic filter for CoffeeScript in pure PHP implementation
Installs: 1 404
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- coffeescript/coffeescript: 1.3.1
This package is not auto-updated.
Last update: 2025-02-25 02:43:51 UTC
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 %}