Skip to main content

serenade_view/
partial.rs

1//! Twig-include analogue without a template engine.
2
3/// Runs `body` and returns its HTML fragment (named nesting for builders).
4#[must_use]
5pub fn partial(body: impl FnOnce() -> String) -> String {
6    body()
7}