30 lines
629 B
Plaintext
Executable File
30 lines
629 B
Plaintext
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<%c++ std::string title=@@.get<std::string>("title");
|
|
auto para=@@.get<std::map<std::string,std::string>>("parameters");
|
|
%>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title><%c++ $$<<title;%> </title>
|
|
</head>
|
|
<body>
|
|
<%c++ if(para.size()>0){%>
|
|
<H1>Parameters</H1>
|
|
<table border="1">
|
|
<tr>
|
|
<th>name</th>
|
|
<th>value</th>
|
|
</tr>
|
|
<%c++ for(auto iter:para){%>
|
|
<tr>
|
|
<td><%c++ $$<<iter.first;%></td>
|
|
<td><%c++ $$<<iter.second;%></td>
|
|
</tr>
|
|
<%c++}%>
|
|
</table>
|
|
<%c++ }else{%>
|
|
<H1>no parameter</H1>
|
|
<%c++}%>
|
|
</body>
|
|
</html>
|