private function parseRawBody($startLine)
    {
        $templateSource = \file_get_contents($this->parser->getStream()->getSourceContext()->getPath());

        // parse tag contents
        \preg_match(
            '/\\s*\\{%\s*example\\s*%\\}(.*?)\\s*\\{%\\s*endexample\\s*%\\}/s',
            \implode(
                "\n",
                \array_slice(
                    \preg_split('/\\n|\\r\\n?/', $templateSource),
                    $startLine - 1,
                    $this->parser->getCurrentToken()->getLine() - $startLine + 1
                )
            ),
            $match
        );

        if (isset($match[1])) {
            return $this->removeExtraIndentation($match[1]);
        }

        return '';
    }
private function parseRawBody($startLine)
    {
        $templateSource = \file_get_contents($this->parser->getStream()->getSourceContext()->getPath());

        // parse tag contents
        \preg_match(
            '/\\s*\\{%\s*example\\s*%\\}(.*?)\\s*\\{%\\s*endexample\\s*%\\}/s',
            \implode(
                "\n",
                \array_slice(
                    \preg_split('/\\n|\\r\\n?/', $templateSource),
                    $startLine - 1,
                    $this->parser->getCurrentToken()->getLine() - $startLine + 1
                )
            ),
            $match
        );

        if (isset($match[1])) {
            return $this->removeExtraIndentation($match[1]);
        }

        return '';
    }
private function parseRawBody ( $ startLine ) { $ templateSource = \ file_get_contents ( $ this -> parser -> getStream ( ) -> getSourceContext ( ) -> getPath ( ) ) ; // parse tag contents \ preg_match ( '/\\s*\\{%\s*example\\s*%\\}(.*?)\\s*\\{%\\s*endexample\\s*%\\}/s' , \ implode ( "\n" , \ array_slice ( \ preg_split ( '/\\n|\\r\\n?/' , $ templateSource ) , $ startLine - 1 , $ this -> parser -> getCurrentToken ( ) -> getLine ( ) - $ startLine + 1 ) ) , $ match ) ; if ( isset ( $ match [ 1 ] ) ) { return $ this -> removeExtraIndentation ( $ match [ 1 ] ) ; } return '' ; }
Parse raw template body.

@param int $startLine

@return string
Parse raw template body .