Skip to content

gersh/drupal-coffeescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Introduction
Cofeescript is an improved version of Javascript. This module allows to use Coffeescript in your modules, and include Coffeescript files in your Drupal pages. 

Cofeescript is an improved version of Javascript. This module allows to use Coffeescript in your modules, and include Coffeescript files in your Drupal pages. This uses a PHP interpreter to compile the CoffeeScript into javascript.

# Usage

coffeescript_add_cs($data,$type)

If $type is 'file', then data is the coffeescript file. If $type is 'inline', it will compile the iniline code.

# About Coffeescript

The CoffeeScript syntax aims to simplify Javascript. See http://jashkenas.github.com/coffee-script/. For example

	var a=3;

becomes
	a = 3

You can write functions as (x)->x instead of function(x) { return(x); }

# Author
This was written by Gershon Bialer based upon https://github.com/alxlit/coffeescript-php.


About

Coffeescript module for Drupal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages