optimizations
This commit is contained in:
parent
e10e9b6d86
commit
bb21e64a51
11 changed files with 88 additions and 108 deletions
|
@ -4,30 +4,6 @@
|
|||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::string complex_html{
|
||||
"<h1>{{header}}</h1>\n"
|
||||
"{{#list}}\n"
|
||||
" <ul>\n"
|
||||
" {{#item}}\n"
|
||||
" {{#current}}\n"
|
||||
" <li><strong>{{name}}</strong></li>\n"
|
||||
" {{/current}}\n"
|
||||
" {{#link}}\n"
|
||||
" <li><a href=\"{{url}}\">{{name}}</a></li>\n"
|
||||
" {{/link}}\n"
|
||||
" {{/item}}\n"
|
||||
" </ul>\n"
|
||||
"{{/list}}\n"
|
||||
"{{#empty}}\n"
|
||||
" <p>The list is empty.</p>\n"
|
||||
"{{/empty}}\n"
|
||||
"{{^empty}}\n"
|
||||
" <p>The list is not empty.</p>\n"
|
||||
"{{/empty}}"
|
||||
};
|
||||
|
||||
|
||||
|
||||
std::string comment_tmp{
|
||||
"<div class=\"comments\"><h3>{{header}}</h3><ul>"
|
||||
"{{#comments}}<li class=\"comment\"><h5>{{name}}</h5>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue