serenade-view 1.0.0

HTML view helpers: path, asset, partials (no template engine)
Documentation
1
2
3
4
5
6
7
//! Twig-include analogue without a template engine.

/// Runs `body` and returns its HTML fragment (named nesting for builders).
#[must_use]
pub fn partial(body: impl FnOnce() -> String) -> String {
    body()
}