Linux 软件免费装

WP CoffeeScript

开发者 tombenner
更新时间 2012年1月10日 04:51
PHP版本: 3.0 及以上
WordPress版本: 3.3.1

标签

plugin javascript development js developers coffeescript cs

下载

1.0

详情介绍:

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.

安装:

  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 is installed on the server or set a custom path to the executable (see the examples)

常见问题:

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: