src/Render/Template.php
public static function render($strTemplate, $strOutputFormat, $arrTplData, $blnFailIfNotFound = false)
    {
        $objTemplate = new self($strTemplate);
        $objTemplate->setData($arrTplData);

        return $objTemplate->parse($strOutputFormat, $blnFailIfNotFound);
    }
public static function render($strTemplate, $strOutputFormat, $arrTplData, $blnFailIfNotFound = false)
    {
        $objTemplate = new self($strTemplate);
        $objTemplate->setData($arrTplData);

        return $objTemplate->parse($strOutputFormat, $blnFailIfNotFound);
    }
public static function render ( $ strTemplate , $ strOutputFormat , $ arrTplData , $ blnFailIfNotFound = false ) { $ objTemplate = new self ( $ strTemplate ) ; $ objTemplate -> setData ( $ arrTplData ) ; return $ objTemplate -> parse ( $ strOutputFormat , $ blnFailIfNotFound ) ; }
Static convenience method to perform the whole rendering within one line of code.

@param string $strTemplate       Name of the template file.

@param string $strOutputFormat   The desired output format.

@param array  $arrTplData        The data to use in the template.

@param bool   $blnFailIfNotFound If set to true, the template object will throw an exception if the template
can not be found. Defaults to false.

@return string
Static convenience method to perform the whole rendering within one line of code .