Related to #373.
For patterns like this:
fn body() -> Markup { ... }
html! {
h1 { "My page" }
main { (body()) }
}
There is technically no need for the intermediate buffer from body, because the markup could render directly into the outer buffer.
In my ideal API, Markup would just implement Render (the render method would have to return something other than Markup, probably just PreEscaped<String>) and take advantage of the existing render_to method.
Related to #373.
For patterns like this:
There is technically no need for the intermediate buffer from
body, because the markup could render directly into the outer buffer.In my ideal API,
Markupwould just implementRender(therendermethod would have to return something other thanMarkup, probably justPreEscaped<String>) and take advantage of the existingrender_tomethod.