public function rowRender($template)
    {
        foreach ($this->current_row as $key => $val) {
            if (isset($this->current_row_html[$key])) {
                continue;
            }

            if ($val instanceof DateTime) {
                $val = $val->format($this->app->getConfig('locale/datetime', 'Y-m-d H:i:s'));
            }

            $template->trySet($key, $val);
        }

        $template->setHTML($this->current_row_html);
        $template->trySet('id', $this->current_id);
        $o = $template->render();
        foreach (array_keys($this->current_row) + array_keys($this->current_row_html) as $k) {
            $template->tryDel($k);
        }

        return $o;
    }