private function getJavaScriptContent($path)
    {
        if ($this->isExternalJavaScriptFile($path)) {
            $fileData = $this->getRequestHandler()->getContent($path);
        } else {
            $fileData = '';
            if (file_exists($path)) {
                $fileData = file_get_contents($path);
            }
        }

        return "<script type=\"text/javascript\">\n" . $fileData . "</script>";
    }
private function getJavaScriptContent($path)
    {
        if ($this->isExternalJavaScriptFile($path)) {
            $fileData = $this->getRequestHandler()->getContent($path);
        } else {
            $fileData = '';
            if (file_exists($path)) {
                $fileData = file_get_contents($path);
            }
        }

        return "<script type=\"text/javascript\">\n" . $fileData . "</script>";
    }
private function getJavaScriptContent ( $ path ) { if ( $ this -> isExternalJavaScriptFile ( $ path ) ) { $ fileData = $ this -> getRequestHandler ( ) -> getContent ( $ path ) ; } else { $ fileData = '' ; if ( file_exists ( $ path ) ) { $ fileData = file_get_contents ( $ path ) ; } } return "<script type=\"text/javascript\">\n" . $ fileData . "</script>" ; }
Fetch the content of a JavaScript file from a given path.

@param  string $path
@return string
Fetch the content of a JavaScript file from a given path .