http://glfwtfwhlsm2u5pw3b7crist7bt7fwepj2wgv3n3b64unj22v5435tyd.onion/code/qrqma.html
Like so: auto templateStr = R"(
{% set my_list = make_list(5) -%}
<ul>
{%- for i in my_list %}
<li>{{ title(i) }}</li>
{%- endfor %}
</ul>
)";
struct ListElement {
std::string title;
};
qrqma::Template rendering{
content,
{
// to play with qrqma add symbols here
{"make_list", qrqma::symbol::Function{[](int numElements) {
qrqma::symbol::List l;
for (int i{}; i < numElements; ++i) {
...