FML/Elements/TemplateScript.php
public function getScriptText($parameters = null)
    {
        if (!$parameters) {
            $parameters = $this->parameters;
        }

        ob_start();

        include $this->filePath;

        $scriptText = ob_get_contents();

        ob_end_clean();

        return $scriptText;
    }
public function getScriptText($parameters = null)
    {
        if (!$parameters) {
            $parameters = $this->parameters;
        }

        ob_start();

        include $this->filePath;

        $scriptText = ob_get_contents();

        ob_end_clean();

        return $scriptText;
    }
public function getScriptText ( $ parameters = null ) { if ( ! $ parameters ) { $ parameters = $ this -> parameters ; } ob_start ( ) ; include $ this -> filePath ; $ scriptText = ob_get_contents ( ) ; ob_end_clean ( ) ; return $ scriptText ; }
Get the compiled script text

@param mixed $parameters (optional) Parameters
@return string
Get the compiled script text