Commit f3e9e90a authored by Stuart John Watson's avatar Stuart John Watson

php population now supports lists

parent ac63f89f
File added
......@@ -21,6 +21,13 @@
$elem = $matches[1];
$key = $matches[2];
$val = $thisGame[$key];
if (is_array($val)){
$nVal = "";
foreach($val as $e){
$nVal .= "<li>$e</li>";
}
$val = $nVal;
}
return "<$elem data-target='$key'>$val</$elem>";
},file_get_contents("$game.html"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment