protected function generateContent($templatePath, $templateData)
    {
        $template = $this->getTemplate($templatePath);

        $content = $this->compile($template, $templateData);

        return $content;
    }
protected function generateContent($templatePath, $templateData)
    {
        $template = $this->getTemplate($templatePath);

        $content = $this->compile($template, $templateData);

        return $content;
    }
protected function generateContent ( $ templatePath , $ templateData ) { $ template = $ this -> getTemplate ( $ templatePath ) ; $ content = $ this -> compile ( $ template , $ templateData ) ; return $ content ; }
Generate content with template data is given.

@param  array  $templateData
@return string
Generate content with template data is given .