}
 protected function handleViewException($e, $obLevel)
 {
     $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
     parent::handleViewException($e, $obLevel);
 /**
  * Get the evaluated contents of the file.
  */
 public function render()
 {
     $viewContent = $this->buildBladeViewContent();
     if ($this->isExpired()) {
         $this->filesystem->put($this->cached, $this->bladeCompiler->compileString($viewContent));
     }
     $data = $this->getViewData();
     return $this->engine->get($this->cached, $data);
 }
Beispiel #3
0
 public function get($path, array $data = array())
 {
     $finder = App::make('view.finder');
     $result = parent::get($path, $data);
     while (static::$template != null) {
         $path = $finder->find(static::$template);
         static::$template = null;
         $result = parent::get($path, array_merge($data, ['_view' => $result]));
     }
     return $result;
 }
Beispiel #4
0
 public function get($path, array $data = array())
 {
     return Facades\Markdown::string(parent::get($path, $data));
 }
 /**
  * render
  *
  * @param $file
  * @return string
  */
 public function render($file)
 {
     $engine = new PhpEngine();
     return $engine->get(__DIR__ . DIRECTORY_SEPARATOR . 'template.php', ['originalClass' => $this->detectClassName($file), 'testClassName' => $this->detectTestClassName($file), 'methods' => $this->getMethods($file)]);
 }
 /**
  * Get the evaluated contents of the view.
  *
  * @param  string $path
  * @param  array $data
  * @return string
  * @throws \Exception
  */
 public function get($path, array $data = [])
 {
     $arguments = $data;
     foreach ($this->argumentBlacklist as $argument) {
         unset($arguments[$argument]);
     }
     $this->validate($path, $arguments);
     return parent::get($path, $data);
 }
 /**
  * Get the evaluated contents of the view.
  *
  * @param string $path
  * @param array  $data
  *
  * @return string
  */
 public function get($path, array $data = [])
 {
     $contents = parent::get($path, $data);
     return $this->markdown->convertToHtml($contents);
 }
 /**
  * Get the rendered contents
  *
  * @param string $path
  * @param array $data
  * @return mixed
  */
 public function get($path, array $data = [])
 {
     $contents = parent::get($path, $data);
     return $this->getRenderer()->render($contents);
 }