Title: WP CoffeeScript
Author: tombenner
Published: <strong>Ṣẹrẹ 9, 2012</strong>
Last modified: Ṣẹrẹ 9, 2012

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/wp-coffeescript.svg)

# WP CoffeeScript

 Láti ọwọ́ [tombenner](https://profiles.wordpress.org/tombenner/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/wp-coffeescript.1.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/wp-coffeescript/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/wp-coffeescript/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/wp-coffeescript/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/wp-coffeescript/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-coffeescript/)

## Àpèjúwe

WP CoffeeScript is a WordPress plugin that makes enqueueing [CoffeeScript](http://coffeescript.org)
as easy as enqueueing JavaScript. Instead of using [`wp_enqueue_script()`](https://codex.wordpress.org/Function_Reference/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Ìtumọ̀ Yorùbá: ’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](http://coffeescript.org/#installation)
must be installed on the server. You can also set a custom path to the executable(
see the [examples](https://github.com/tombenner/wp-coffeescript)).

If youÌtumọ̀ Yorùbá: ’d like to grab development releases, see what new features
are being added, or browse the source code please visit the [GitHub repo](http://github.com/tombenner/wp-coffeescript).

### Examples

Enqueue a CoffeeScript file thatÌtumọ̀ Yorùbá: ’s in the theme directory:

    ```
    enqueue_coffeescript('my-handle', get_template_directory().'/my-script.coffee');
    ```

Enqueue multiple CS files, compiling them into a single output file:

    ```
    $script1 = get_template_directory().'/script1.coffee';
    $script2 = get_template_directory().'/script2.coffee';
    enqueue_coffeescript('my-handle', array($script1, $script2));
    ```

Enqueue a CS file in the footer with dependencies (the arguments are exactly the
same as in [`wp_enqueue_script()`](https://codex.wordpress.org/Function_Reference/wp_enqueue_script)):

    ```
    enqueue_coffeescript('my-handle', get_template_directory().'/my-script.coffee', array('dep1', 'dep2'), false, true);
    ```

Set a custom path to the CS executable (the default value is `coffeescript`):

    ```
    add_filter('wpcs_executable', 'set_wpcs_executable');
    function set_wpcs_executable($path) {
        return '/my/path/to/coffeescript';
    }
    ```

Compile the CS on every page load (the default behavior is to only compile when 
the JS has been modified):

    ```
    add_filter('wpcs_caching_enabled', 'disable_wpcs_caching');
    function disable_wpcs_caching($is_enabled) {
        return false;
    }
    ```

## Ìgbéwọlẹ̀

 1. Put `wp-coffeescript` into the `wp-content/plugins` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Make sure that the [CoffeeScript executable](http://coffeescript.org/#installation)
    is installed on the server or set a custom path to the executable (see the [examples](https://github.com/tombenner/wp-coffeescript))

## FAQ

  Where should I go for support questions or to ask for a new feature?

Please feel free to either add a topic in the WordPress forum or contact me through
GitHub for any questions:

 * [WordPress Forum](https://wordpress.org/tags/wp-coffeescript?forum_id=10)
 * [GitHub](http://github.com/tombenner)

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“WP CoffeeScript” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

 *   [ tombenner ](https://profiles.wordpress.org/tombenner/)

[Túmọ̀ “WP CoffeeScript” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/wp-coffeescript)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/wp-coffeescript/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/wp-coffeescript/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/wp-coffeescript/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/wp-coffeescript/?limit=100&mode=stop_on_copy&format=rss).

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 15 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 3.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.3.2**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/wp-coffeescript/)
 * Àwọn àmì
 * [coffeescript](https://yor.wordpress.org/plugins/tags/coffeescript/)[cs](https://yor.wordpress.org/plugins/tags/cs/)
   [development](https://yor.wordpress.org/plugins/tags/development/)[javascript](https://yor.wordpress.org/plugins/tags/javascript/)
   [JS](https://yor.wordpress.org/plugins/tags/js/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/wp-coffeescript/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/wp-coffeescript/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-coffeescript/reviews/)

## Àwọn Olùkópa

 *   [ tombenner ](https://profiles.wordpress.org/tombenner/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-coffeescript/)