+ stub template for the result page

This commit is contained in:
kelson42 2011-03-15 21:23:12 +00:00
parent fb570a6a9d
commit 9e8ebdaf6e
1 changed files with 11 additions and 1 deletions

View File

@ -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);