1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
macro_rules! c {
($name:ident $value:tt) => {
#[allow(non_upper_case_globals)]
pub const $name: $crate::render::Raw<&'static str> = $crate::render::Raw($value);
};
}
pub mod doctype {
c!(HTML "<!DOCTYPE html>");
#[allow(non_snake_case)]
pub mod HTML4 {
c!(Strict "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">");
c!(Transitional "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
c!(Frameset "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\">");
}
}