- std::ifstream tpl_item (templatedir + "/sidebaritem.tpl.html");
- std::string tpl_item_str ( (std::istreambuf_iterator<char> (tpl_item)),
- (std::istreambuf_iterator<char> ()));
- tpl_item.close ();
- html = fmt::format (tpl_item_str, fmt::arg ("itemtext", this->sidebar_text) );
+ std::string tpl_item_str = t->get_genericlistitem_tpl ();
+ html = fmt::format (tpl_item_str, fmt::arg ("itemtext", this->itemtext) );