public function render($list_index = null)
 {
     $html = '';
     if ($this->event_load) {
         \Routerunner\Helper::loader($this, $this->event_load, $output);
         $this->event_load = false;
     }
     if ($this->event_before) {
         \Routerunner\Helper::loader($this, $this->event_before, $output);
     }
     $html_path = $this->router->get_route();
     if (!\runner::config('silent')) {
         $html .= '<!--Routerunner::Route(' . $html_path . ')//-->' . PHP_EOL;
     }
     //$view = $this->path . $this->route . $this->versionroute . DIRECTORY_SEPARATOR . $this->view;
     $file = $this->view;
     $path = "";
     $model_created = false;
     if (isset($this->model->created) && $this->model->created || isset($this->override["create"]) && $this->override["create"] < 0) {
         $model_created = true;
     }
     $found = false;
     if (!is_null($list_index)) {
         if ($divisors = \Routerunner\Helper::get_divisors($list_index)) {
             foreach ($divisors as $divisor) {
                 $divisor_file = str_replace('.php', '.div' . $divisor . '.php', $this->view);
                 if (!$found && ($view = \Routerunner\Helper::prepareLoader($this->path . $this->route, false, $this->versionroute, $path, $divisor_file, true, $model_created, $this->router))) {
                     $found = $view;
                 }
             }
         }
     }
     if (!$found) {
         $view = \Routerunner\Helper::prepareLoader($this->path . $this->route, false, $this->versionroute, $path, $file, true, $model_created, $this->router);
     }
     if ($view) {
         $html .= \Routerunner\Routerunner::$slim->render($view, array('runner' => $this));
     }
     if ($this->i18n) {
         $html = str_replace(array_keys($this->i18n), array_values($this->i18n), $html);
     }
     $html = $this->backend($html);
     //$html = $this->backend_container($html);
     $this->html .= $html;
     \Routerunner\Routerunner::process($this);
     if ($this->event_after) {
         \Routerunner\Helper::loader($this, $this->event_after, $output);
     }
     if ($this->script) {
         $this->script = preg_replace(array('/<script[^>]+>/', '/<\\/script>/'), '', $this->script);
         \runner::stack_js($this->script);
     }
     $this->html_render = $this->html;
 }