doctype

Function doctype 

Source
pub fn doctype() -> impl Render
Examples found in repository?
examples/fortunes.rs (line 31)
29pub fn new(fortunes: &[Fortune]) -> impl std::fmt::Display + '_ {
30    markup::new! {
31        {markup::doctype()}
32        html {
33            head {
34                title { "Fortunes" }
35            }
36            body {
37                table {
38                    tr { th { "id" } th { "message" } }
39                    @for item in fortunes {
40                        tr {
41                            td { @item.id }
42                            td { @item.message }
43                        }
44                    }
45                }
46            }
47        }
48    }
49}