src/Pinocchio/Formatter.php
protected function apply($pinocchio)
    {
        $variables = array(
            'configuration' => $this->configuration,
            'pinocchio'     => $pinocchio,
        );

        ob_start();

        extract($variables);
        include($this->configuration->get('template'));

        return ob_get_clean();
    }
protected function apply($pinocchio)
    {
        $variables = array(
            'configuration' => $this->configuration,
            'pinocchio'     => $pinocchio,
        );

        ob_start();

        extract($variables);
        include($this->configuration->get('template'));

        return ob_get_clean();
    }
protected function apply ( $ pinocchio ) { $ variables = array ( 'configuration' => $ this -> configuration , 'pinocchio' => $ pinocchio , ) ; ob_start ( ) ; extract ( $ variables ) ; include ( $ this -> configuration -> get ( 'template' ) ) ; return ob_get_clean ( ) ; }
Apply the formatter to the given Pinocchio instance.
Returns the resulting HTML page.

@param \Pinocchio\Pinocchio $pinocchio  The Pinocchio instance to format.

@return string
Apply the formatter to the given Pinocchio instance . Returns the resulting HTML page .