Function maud::display

source ·
pub fn display(value: impl Display) -> impl Render
Expand description

Renders a value using its Display impl.

Example

use maud::html;
use std::net::Ipv4Addr;

let ip_address = Ipv4Addr::new(127, 0, 0, 1);

let markup = html! {
    "My IP address is: "
    (maud::display(ip_address))
};

assert_eq!(markup.into_string(), "My IP address is: 127.0.0.1");