public function displayString($input, array $vars = [], $filename = null)
    {
        if ($this->getDefaultOption('pugjs')) {
            echo $this->renderString($input, $vars, $filename);

            return;
        }

        parent::display($input, $vars, $filename);
    }
public function displayString($input, array $vars = [], $filename = null)
    {
        if ($this->getDefaultOption('pugjs')) {
            echo $this->renderString($input, $vars, $filename);

            return;
        }

        parent::display($input, $vars, $filename);
    }
public function displayString ( $ input , array $ vars = [ ] , $ filename = null ) { if ( $ this -> getDefaultOption ( 'pugjs' ) ) { echo $ this -> renderString ( $ input , $ vars , $ filename ) ; return ; } parent :: display ( $ input , $ vars , $ filename ) ; }
Display HTML code from a Pug input string.

@param string $input    pug input string
@param array  $vars     to pass to the view
@param string $filename optional file path

@throws \Exception

@return string
Display HTML code from a Pug input string .