public function renderRequireJs($compressed = true)
    {
        if ($compressed && !$this->buildFileExists()) {
            // TODO throw exception ?
            $compressed = false;
        }

        return $this->template->render([
            'compressed' => $compressed,
            'build_path' => $this->config['build_path'],
            'config'     => $this->provider->getMainConfig(),
        ]);
    }
public function renderRequireJs($compressed = true)
    {
        if ($compressed && !$this->buildFileExists()) {
            // TODO throw exception ?
            $compressed = false;
        }

        return $this->template->render([
            'compressed' => $compressed,
            'build_path' => $this->config['build_path'],
            'config'     => $this->provider->getMainConfig(),
        ]);
    }
public function renderRequireJs ( $ compressed = true ) { if ( $ compressed && ! $ this -> buildFileExists ( ) ) { // TODO throw exception ? $ compressed = false ; } return $ this -> template -> render ( [ 'compressed' => $ compressed , 'build_path' => $ this -> config [ 'build_path' ] , 'config' => $ this -> provider -> getMainConfig ( ) , ] ) ; }
Renders the RequireJs initialisation script.

@param bool $compressed
@return string
Renders the RequireJs initialisation script .