Пример #1
0
 /**
  * Get the evaluated contents of the view.
  *
  * @param  string  $path
  * @param  array   $data
  * @return string
  */
 public function get($path, array $data = [])
 {
     // To preserve the capability of using any underlying templating system,
     // e.g. the Blade template or any templating engines that has already
     // been integrated to Illuminate View, Premailer will act as wrapper,
     // that will only inlined the CSS from the template system result.
     $result = $this->engine->get($path, $data);
     $premailer = new HtmlString($result);
     return $premailer->getHtml();
 }
Пример #2
0
 /**
  * Get the evaluated contents of the view.
  *
  * @return string
  */
 protected function getContents()
 {
     return $this->engine->get($this->path, $this->gatherData());
 }
Пример #3
0
 /**
  * Get the evaluated contents of the LESS.
  *
  * @return string
  */
 protected function getContents()
 {
     return $this->engine->get($this->path);
 }