WP CoffeeScript

Allows developers to easily use CoffeeScript in WordPress. Simply use enqueue_coffeescript(); the compilation is done automatically behind the scenes.

Author:Tom Benner (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:3.3.2
Plugin version:1.0
Added to WordPress repository:09-01-2012
Last updated:09-01-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://wordpress.org/extend/plugins/wp-coffee...
Total downloads:657
Active installs:10+
plugin download
Click to start download

WP CoffeeScript is a WordPress plugin that makes enqueueing CoffeeScript as easy as enqueueing JavaScript. Instead of using wp_enqueue_script(), as you would for JS, you just use enqueue_coffeescript(), which takes almost exactly the same arguments. The only difference is that the second argument should be the file path instead of the URL. If you'd like to compile multiple CS files into a single JS file, you can use an array of file paths as the second argument.

Please note that the CoffeeScript executable must be installed on the server. You can also set a custom path to the executable (see the examples).

If you'd like to grab development releases, see what new features are being added, or browse the source code please visit the GitHub repo.



FAQ