src/Filter/CoffeeScript.php
public function input($filename, $input)
    {
        if (substr($filename, strlen($this->_settings['ext']) * -1) !== $this->_settings['ext']) {
            return $input;
        }
        $cmd = $this->_settings['node'] . ' ' . $this->_settings['coffee'] . ' -c -p -s ';
        $env = array('NODE_PATH' => $this->_settings['node_path']);
        return $this->_runCmd($cmd, $input, $env);
    }
public function input($filename, $input)
    {
        if (substr($filename, strlen($this->_settings['ext']) * -1) !== $this->_settings['ext']) {
            return $input;
        }
        $cmd = $this->_settings['node'] . ' ' . $this->_settings['coffee'] . ' -c -p -s ';
        $env = array('NODE_PATH' => $this->_settings['node_path']);
        return $this->_runCmd($cmd, $input, $env);
    }
public function input ( $ filename , $ input ) { if ( substr ( $ filename , strlen ( $ this -> _settings [ 'ext' ] ) * - 1 ) !== $ this -> _settings [ 'ext' ] ) { return $ input ; } $ cmd = $ this -> _settings [ 'node' ] . ' ' . $ this -> _settings [ 'coffee' ] . ' -c -p -s ' ; $ env = array ( 'NODE_PATH' => $ this -> _settings [ 'node_path' ] ) ; return $ this -> _runCmd ( $ cmd , $ input , $ env ) ; }
Runs `coffee` against files that match the configured extension.

@param string $filename Filename being processed.
@param string $content Content of the file being processed.
@return string
Runs coffee against files that match the configured extension .