From ca532b99f2af584f5b98145070700deea28caa59 Mon Sep 17 00:00:00 2001 From: renaud gaudin Date: Wed, 13 Nov 2013 19:58:56 +0000 Subject: [PATCH] Fixed CTPP2 not working * Fixed templates * Changed behavior of getHtml() to use higher level VM API --- static/buildResourceCode.sh | 4 +- static/results.tmpl | 128 +++++++++++++++++++++++++++++++++++- 2 files changed, 129 insertions(+), 3 deletions(-) diff --git a/static/buildResourceCode.sh b/static/buildResourceCode.sh index 419ecb8..e90363d 100755 --- a/static/buildResourceCode.sh +++ b/static/buildResourceCode.sh @@ -26,13 +26,13 @@ do FILE_ID=`echo "$FILE" | sed "s/\//_/g" | sed "s/\./_/g" | sed "s/\-/_/g"` echo "Inserting $FILE... [$FILE_ID]" reswrap -s -x -oa $RESOURCE_FILE -r $FILE_ID $FILE - MAP=$MAP"\tm[\""$FILE"\"] = std::pair ("$FILE_ID", sizeof "$FILE_ID"); \n"; + MAP=$MAP"\tm[\""$FILE"\"] = std::pair ("$FILE_ID", sizeof "$FILE_ID"); \n"; done; MAP=$MAP"\treturn m; \n"; MAP=$MAP"} \n\n" MAP=$MAP"static std::map > resourceMap = createResourceMap(); \n\n" -# Create the map table +# Create the map table # map m = map_list_of (1,2) (3,4) (5,6) (7,8); echo $MAP >> "$RESOURCE_FILE" diff --git a/static/results.tmpl b/static/results.tmpl index 4fe053b..1d95b80 100644 --- a/static/results.tmpl +++ b/static/results.tmpl @@ -1 +1,127 @@ -SALUT \ No newline at end of file + + + + + + Search: <TMPL_var searchPattern> + + +
+ Results - of for No result were found for +
+ +
+
    + +
  • + ... +
    words
    +
  • +
    +
+
+ + + + +