Comment by pb82
6 years ago
Yes exactly. And now if the constructor of your element, let's say a div, doesn't take a string but a std::initializer_list you can write it like this:
auto doc = Div {
H1("Topics")
};
6 years ago
Yes exactly. And now if the constructor of your element, let's say a div, doesn't take a string but a std::initializer_list you can write it like this:
auto doc = Div {
H1("Topics")
};
Those look like parentheses though. Also braces, but the Lua version has those too.