mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-09 07:08:38 -04:00
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());
|
printf("Searching suggestions for: \"%s\"\n", queryString.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
MustacheData results{MustacheData::type::list};
|
Suggestions results;
|
||||||
|
|
||||||
bool first = true;
|
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; });
|
tmpl.render(data, [&ss](const std::string& str) { ss << str; });
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kiwix::Suggestions::Suggestions()
|
||||||
|
: kainjow::mustache::data(kainjow::mustache::data::type::list)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@ -67,6 +67,12 @@ namespace kiwix
|
|||||||
|
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class Suggestions : public kainjow::mustache::data
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Suggestions();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user