CeesVanEgmond\Minify\Minify::render PHP Method

render() protected method

protected render ( ) : mixed
return mixed
    protected function render()
    {
        $baseUrl = $this->fullUrl ? $this->getBaseUrl() : '';
        if (!$this->minifyForCurrentEnvironment()) {
            return $this->provider->tags($baseUrl, $this->attributes);
        }
        $filename = $baseUrl . $this->buildPath . $this->provider->getFilename();
        if ($this->onlyUrl) {
            return $filename;
        }
        return $this->provider->tag($filename, $this->attributes);
    }

Usage Example

Beispiel #1
0
 /**
  * 
  *
  * @return mixed 
  * @static 
  */
 public static function render()
 {
     return \CeesVanEgmond\Minify\Minify::render();
 }