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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/// Generate static HTML attributes.
///
/// This will return a [`RawAttribute<&'static str>`](crate::RawAttribute),
/// which can be used in `const` contexts.
///
/// Note that the macro cannot process any dynamic content, so you cannot use
/// any expressions inside the macro.
///
/// # Example
///
/// ```
/// use hypertext::{RawAttribute, attribute_static, prelude::*};
///
/// assert_eq!(
/// attribute_static! { "my attribute " 1 }.into_inner(),
/// "my attribute 1"
/// );
/// ```
pub use attribute_static;
/// Generate static HTML using [`maud`] syntax.
///
/// For details about the syntax, see [`maud!`].
///
/// This will return a [`Raw<&'static str>`](crate::Raw), which can be used in
/// `const` contexts.
///
/// Note that the macro cannot process any dynamic content, so you cannot use
/// any expressions inside the macro.
///
/// # Example
///
/// ```
/// use hypertext::{Raw, maud_static, prelude::*};
///
/// assert_eq!(
/// maud_static! {
/// div #profile title="Profile" {
/// h1 { "Alice" }
/// }
/// }
/// .into_inner(),
/// r#"<div id="profile" title="Profile"><h1>Alice</h1></div>"#,
/// );
/// ```
///
/// [`maud`]: https://docs.rs/maud
pub use maud_static;
/// Generate static HTML using rsx syntax.
///
/// This will return a [`Raw<&'static str>`](crate::Raw), which can be used in
/// `const` contexts.
///
/// Note that the macro cannot process any dynamic content, so you cannot use
/// any expressions inside the macro.
///
/// # Example
///
/// ```
/// use hypertext::{Raw, prelude::*, rsx_static};
///
/// assert_eq!(
/// rsx_static! {
/// <div id="profile" title="Profile">
/// <h1>Alice</h1>
/// </div>
/// }
/// .into_inner(),
/// r#"<div id="profile" title="Profile"><h1>Alice</h1></div>"#,
/// );
/// ```
pub use rsx_static;
pub use *;