Skip to content

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.

Notifications You must be signed in to change notification settings

lilweb/LilwebCoffeescriptBundle

Repository files navigation

LilwebCoffeescriptBundle

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 %}

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages