/**
  * 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);
     $Parser = new Parser();
     return $Parser->parse($contents);
     //return $this->reStructuredText->convertToHtml($contents);
 }
 public function get($path, array $data = array())
 {
     $env = (object) $data['__env'];
     $result = parent::get($path, $data);
     $env->decrementRender();
     $doneRendering = $env->doneRendering();
     $env->incrementRender();
     $doneRendering && ($result = Fis::filter($result));
     return $result;
 }
Example #3
0
 /**
  * Create a new Twig view engine instance.
  *
  * @param \TwigBridge\Engine\Compiler        $compiler
  * @param \TwigBridge\Twig\Loader            $loader
  * @param array                              $globalData
  */
 public function __construct(Compiler $compiler, Loader $loader, array $globalData = [])
 {
     parent::__construct($compiler);
     $this->loader = $loader;
     $this->globalData = $globalData;
 }
 /**
  * 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);
 }
Example #6
0
 public function get($path, array $data = array())
 {
     return Facades\Textile::string(parent::get($path, $data));
 }
 public function get($path, array $data = array())
 {
     $contents = parent::get($path, $data);
     return $this->parser->transformExtra($contents, false);
 }
Example #8
0
 /**
  * Handle a view exception.
  * NOTICE: Overwrites the original method!
  *
  * @param  \Exception  $e
  * @param  int  $obLevel
  * @return void
  *
  * @throws $e
  */
 protected function handleViewException($e, $obLevel)
 {
     parent::handleViewException($e, $obLevel);
 }
 /**
  * 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);
 }