mirror of https://github.com/kiwix/libkiwix.git
+ stub template for the result page
This commit is contained in:
parent
fb570a6a9d
commit
9e8ebdaf6e
|
@ -117,7 +117,17 @@ namespace kiwix {
|
|||
|
||||
// Fill data
|
||||
CDT oData;
|
||||
oData["hello"] = "Hello, World!";
|
||||
CDT resultsCDT(CDT::ARRAY_VAL);
|
||||
CDT result1;
|
||||
result1["title"] = "title1";
|
||||
result1["url"] = "url1";
|
||||
CDT result2;
|
||||
result2["title"] = "title2";
|
||||
result2["url"] = "url2";
|
||||
|
||||
resultsCDT[0] = result1;
|
||||
resultsCDT[1] = result2;
|
||||
oData["results"] = resultsCDT;
|
||||
|
||||
STLW::string sResult;
|
||||
StringOutputCollector oDataCollector(sResult);
|
||||
|
|
Loading…
Reference in New Issue