src/StaticDeploy/Parser/Twig/Extension.php
public function getCurrentPage()
    {
        $givenRelativeFile = str_replace(
            $this->environment->getSourceDirectory(),
            '',
            $this->environment->getSourceFile()
        );

        return str_replace('.twig', '', $givenRelativeFile);
    }
public function getCurrentPage()
    {
        $givenRelativeFile = str_replace(
            $this->environment->getSourceDirectory(),
            '',
            $this->environment->getSourceFile()
        );

        return str_replace('.twig', '', $givenRelativeFile);
    }
public function getCurrentPage ( ) { $ givenRelativeFile = str_replace ( $ this -> environment -> getSourceDirectory ( ) , '' , $ this -> environment -> getSourceFile ( ) ) ; return str_replace ( '.twig' , '' , $ givenRelativeFile ) ; }
will return current parsed page
@return string
will return current parsed page