Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.
/ CoffeePhpBundle Public archive

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

Notifications You must be signed in to change notification settings

dlancea/CoffeePhpBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoffeePhpBundle

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages