PHP code example of blake / coffeescript

1. Go to this page and download the library: Download blake/coffeescript library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

blake / coffeescript example snippets


// ...
'modules' => array(
	// ...
	'Blake\CoffeeScript',
	// ...
),
// ...

$this->inlineScript()->appendCoffeeScript(<<<COFFEESCRIPT
	console.log 'Hello, syntax.'
COFFEESCRIPT
);

echo $this->coffeeScript(<<<COFFEESCRIPT
	console.log 'Another lame example.'
COFFEESCRIPT
);

$options = array(
	'bare' => true,
	'header' => false,
);