Beispiel #1
0
 /**
  * @return string
  */
 public function render()
 {
     $response = [];
     if (empty($this->vars)) {
         return '';
     }
     foreach ($this->vars as $attributes) {
         if (empty($attributes)) {
             continue;
         }
         $response[] = '<script type="text/javascript" ' . AssetsManager::implodeAttributes($attributes) . ' ></script>';
     }
     return implode(PHP_EOL, $response);
 }
Beispiel #2
0
 /**
  * @return string
  */
 public function render()
 {
     $response = [];
     foreach ($this->vars as $attributes) {
         if (empty($attributes)) {
             continue;
         }
         $response[] = '<link ' . AssetsManager::implodeAttributes($attributes) . '/>';
     }
     return implode(PHP_EOL, $response);
 }