Esempio n. 1
0
 public function sendResponse(IResponse $response)
 {
     if ($this->tidy->isEnabled() && $response instanceof TextResponse && $response->getSource() instanceof ITemplate) {
         $response = new TidyResponse($response, $this->tidy);
     }
     parent::sendResponse($response);
 }
Esempio n. 2
0
 public function send(Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse)
 {
     ob_start();
     $this->response->send($httpRequest, $httpResponse);
     $html = ob_get_contents();
     ob_end_clean();
     echo $this->tidy->process($html);
 }