示例#1
0
 /**
  * Render meta tag
  *
  * @param  string $name
  * @param  string $content
  * @param  array  $attributes
  *
  * @return string
  */
 protected function renderMetaTag($name, $content, array $attributes = [])
 {
     if ($this->isEmpty()) {
         return '';
     }
     return Markup::meta('name', $name, $content, $attributes)->render();
 }
示例#2
0
文件: Meta.php 项目: arcanedev/head
 /**
  * @return string
  */
 public function render()
 {
     if ($this->isEmpty()) {
         return '';
     }
     return Markup::meta('name', $this->name, $this->content)->render();
 }