pub enum DocType {
HTML5,
}
Expand description
Renders a document type declaration.
This type can be used together with the render!
macro to generate a valid
HTML document.
Example
let n = render!(
DocType::HTML5,
html!(
head!(title!("laby")),
body!(),
),
);
assert_eq!(n, "<!DOCTYPE html><html><head><title>laby</title></head><body></body></html>");
Variants§
HTML5
Declaration for an HTML5 document.