mirror of https://github.com/kiwix/libkiwix.git
Conception of kiwix::Suggestions
This commit is contained in:
parent
6285599b7c
commit
18f4a58237
|
@ -700,7 +700,7 @@ std::unique_ptr<Response> InternalServer::handle_suggest(const RequestContext& r
|
|||
printf("Searching suggestions for: \"%s\"\n", queryString.c_str());
|
||||
}
|
||||
|
||||
MustacheData results{MustacheData::type::list};
|
||||
Suggestions results;
|
||||
|
||||
bool first = true;
|
||||
|
||||
|
|
|
@ -326,3 +326,8 @@ std::string kiwix::render_template(const std::string& template_str, kainjow::mus
|
|||
tmpl.render(data, [&ss](const std::string& str) { ss << str; });
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
kiwix::Suggestions::Suggestions()
|
||||
: kainjow::mustache::data(kainjow::mustache::data::type::list)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -67,6 +67,12 @@ namespace kiwix
|
|||
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
class Suggestions : public kainjow::mustache::data
|
||||
{
|
||||
public:
|
||||
Suggestions();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue