Example #1
0
 /**
  * @param $str
  * @param array $headers
  * @return bool
  */
 public function rendarString($str, $headers = array())
 {
     $headers = array_merge(array("Content-Type" => "text/html"), $headers);
     if (Application::DebugMode()) {
         $debug = new Debug();
         $debug->appendRendarDebug($str);
     }
     $response = new Response($str);
     $response->setHeaders($headers);
     $response->output();
     return true;
 }