public function compile($string, $filename = null)
    {
        $compiler = $this->getCompiler();

        $this->setDebugString($string);
        $this->setDebugFile($filename);
        $this->setDebugFormatter($compiler->getFormatter());

        return $compiler->compile($string, $filename);
    }
public function compile($string, $filename = null)
    {
        $compiler = $this->getCompiler();

        $this->setDebugString($string);
        $this->setDebugFile($filename);
        $this->setDebugFormatter($compiler->getFormatter());

        return $compiler->compile($string, $filename);
    }
public function compile ( $ string , $ filename = null ) { $ compiler = $ this -> getCompiler ( ) ; $ this -> setDebugString ( $ string ) ; $ this -> setDebugFile ( $ filename ) ; $ this -> setDebugFormatter ( $ compiler -> getFormatter ( ) ) ; return $ compiler -> compile ( $ string , $ filename ) ; }
Compile a pug template string into a PHP string.

@param string $string   pug input string
@param string $filename optional file path of the given template

@return string
Compile a pug template string into a PHP string .