2017 © Pedro Peláez
 

symfony-bundle coffee-php-bundle

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

image

dlancea/coffee-php-bundle

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

  • Wednesday, November 5, 2014
  • by dlancea
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,508 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

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

Also available on packagist as package: "dlancea/coffee-php-bundle": "dev-master", (*3)

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., (*4)

Example:, (*5)

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

The Versions

05/11 2014

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by David Lancea