src/Viserio/Component/View/View.php
public function render(callable $callback = null): string
    {
        try {
            $contents = $this->getContents();

            $response = isset($callback) ? $callback($this, $contents) : null;

            return $response ?? $contents;
        } catch (Throwable $exception) {
            throw $exception;
        }
    }
public function render(callable $callback = null): string
    {
        try {
            $contents = $this->getContents();

            $response = isset($callback) ? $callback($this, $contents) : null;

            return $response ?? $contents;
        } catch (Throwable $exception) {
            throw $exception;
        }
    }
{@inheritdoc}