protected function renderWidget($widget, $filterOptions)
    {
        $filter       = $widget;
        $templateName = $filter['raw']['eval']['template'];
        $template     = new \FrontendTemplate($templateName ? $templateName : 'mm_filteritem_default');

        $template->setData($filter);

        $template->submit = $filterOptions->isAutoSubmit();
        $filter['value']  = $template->parse();

        return $filter;
    }