public function outputJs($container = 'default')
    {
        $assets = $this->getAssets($container, 'js');

        $html = [];

        foreach ($assets as $asset) {
            $source = $this->url ? $this->url->asset($asset['source']): $asset['source'];
            $html[] = $this->html->script($source, $asset['attributes']);
        }

        return trim(implode(PHP_EOL, $html));
    }
public function outputJs($container = 'default')
    {
        $assets = $this->getAssets($container, 'js');

        $html = [];

        foreach ($assets as $asset) {
            $source = $this->url ? $this->url->asset($asset['source']): $asset['source'];
            $html[] = $this->html->script($source, $asset['attributes']);
        }

        return trim(implode(PHP_EOL, $html));
    }
public function outputJs ( $ container = 'default' ) { $ assets = $ this -> getAssets ( $ container , 'js' ) ; $ html = [ ] ; foreach ( $ assets as $ asset ) { $ source = $ this -> url ? $ this -> url -> asset ( $ asset [ 'source' ] ) : $ asset [ 'source' ] ; $ html [ ] = $ this -> html -> script ( $ source , $ asset [ 'attributes' ] ) ; } return trim ( implode ( PHP_EOL , $ html ) ) ; }
Output a JS asset from the container

@param string $container
@return string
Output a JS asset from the container