dlancea/coffee-php-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony2 Bundle for using alxlit's PHP implementation of the coffeescript compiler as an Assetic filter.

Installs: 1 520

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2014-11-05 21:38 UTC

This package is not auto-updated.

Last update: 2024-03-02 12:21:02 UTC


README

Symfony2 Bundle for using alxlit's PHP implementation of the coffeescript compiler as an Assetic filter. Good for using coffeescript in Symfony in a pure PHP environment, no need to install node.js.

If you're using Assetic without Symfony, the assetic filter located in Assetic/Filter should work fine as-is.

Also available on packagist as package: "dlancea/coffee-php-bundle": "dev-master"

How to use

Install the package and include it in AppKernel.php. Once that's done, you can start using "filter='coffeephp'" in your javascripts tags which contain .coffee files. The files will be compiled into and included as javascript.

Example:

{% javascripts filter='coffeephp'
	'@AcmeBundle/Resources/assets/coffee/app.coffee'
%}
	<script src="{{ asset_url }}"></script>
{% endjavascripts %}