Title: WP CoffeeScript
Author: tombenner
Published: <strong>2012년 1월 9일</strong>
Last modified: 2012년 1월 9일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

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

# WP CoffeeScript

 작성자: [tombenner](https://profiles.wordpress.org/tombenner/)

[다운로드](https://downloads.wordpress.org/plugin/wp-coffeescript.1.0.zip)

 * [세부사항](https://ko.wordpress.org/plugins/wp-coffeescript/#description)
 * [평가](https://ko.wordpress.org/plugins/wp-coffeescript/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/wp-coffeescript/#installation)
 * [개발](https://ko.wordpress.org/plugins/wp-coffeescript/#developers)

 [지원](https://wordpress.org/support/plugin/wp-coffeescript/)

## 설명

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’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’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’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;
    }
    ```

## 설치

 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)

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“WP CoffeeScript”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

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

[자국어로 “WP CoffeeScript”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/wp-coffeescript)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/wp-coffeescript/)는, 
[SVN 저장소](https://plugins.svn.wordpress.org/wp-coffeescript/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/wp-coffeescript/)을 [RSS](https://plugins.trac.wordpress.org/log/wp-coffeescript/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 기초

 *  버전 **1.0**
 *  최근 업데이트: **15년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 3.0 또는 그 이상 **
 *  다음까지 시험됨: **3.3.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/wp-coffeescript/)
 * 태그:
 * [coffeescript](https://ko.wordpress.org/plugins/tags/coffeescript/)[cs](https://ko.wordpress.org/plugins/tags/cs/)
   [development](https://ko.wordpress.org/plugins/tags/development/)[javascript](https://ko.wordpress.org/plugins/tags/javascript/)
   [JS](https://ko.wordpress.org/plugins/tags/js/)
 *  [고급 보기](https://ko.wordpress.org/plugins/wp-coffeescript/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

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

[모든  리뷰 보기](https://wordpress.org/support/plugin/wp-coffeescript/reviews/)

## 기여자

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

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/wp-coffeescript/)