src/Managers/TemplateManager.php
public function renderRaw(string $filetype, string $content, array $data)
    {
        $generator = $this->getGeneratorOrFail($filetype);
        $generator = new $generator();

        return $generator->generateAndRender($content, $data);
    }
public function renderRaw(string $filetype, string $content, array $data)
    {
        $generator = $this->getGeneratorOrFail($filetype);
        $generator = new $generator();

        return $generator->generateAndRender($content, $data);
    }
public function renderRaw ( string $ filetype , string $ content , array $ data ) { $ generator = $ this -> getGeneratorOrFail ( $ filetype ) ; $ generator = new $ generator ( ) ; return $ generator -> generateAndRender ( $ content , $ data ) ; }
Render given template with data.

@param string $filetype
@param string $content
@param array  $data

@return mixed
Render given template with data .