src/AbstractTemplate.php
public function render(array $data = null): string
    {
        $this->init($data ?? []);

        return trim($this->make(static::LAYOUT_NAME)) . PHP_EOL;
    }
public function render(array $data = null): string
    {
        $this->init($data ?? []);

        return trim($this->make(static::LAYOUT_NAME)) . PHP_EOL;
    }
Renders a content.

@param array $data The data.

@return string Rendered content.