Download the PHP package blake/coffeescript without Composer
On this page you can find all versions of the php package blake/coffeescript. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blake/coffeescript
More information about blake/coffeescript
Files in blake/coffeescript
Package coffeescript
Short Description Coffeescript module for ZF2.
License MIT
Homepage https://github.com/Panoptisis/coffeescript
Informations about the package coffeescript
ZF2 CoffeeScript Module
About
This module provides inline support for CoffeeScript in ZF2 views using alxlit's PHP CoffeeScript Compiler.
Installation
Installing this modul is quite simple using Composer. First, add this to your composer.json:
Set this requirement up with the usual composer.phar install
command. And finally,
you need to add this to your ZF2 application.config.php
:
Usage
With this installed, you can call appendCoffeeScript()
off of the HeadScript
or InlineScript
view helpers.
Additionally, there is a dedicated CoffeeScript
invokable view helper that will simply
compile CoffeeScript.
Compiler Options
Both of the helpers illustrated above take a second, optional, argument that is a array of options to pass on to the CoffeeScript compiler. You can see a list of these options on the official PHP CoffeeScript documentation.
By default, the options passed to the compiler are:
These can be overriden by passing your own options.
All versions of coffeescript with dependencies
zendframework/zendframework Version 2.2.*
coffeescript/coffeescript Version 1.3.*