1#[macro_export]
3macro_rules! comment {
4 ($($tt:tt)*) => {
5 ::html_node::Node::Comment(::html_node::Comment {
6 comment: ::std::format!($($tt)*),
7 })
8 };
9}
10
11#[macro_export]
13macro_rules! text {
14 ($($tt:tt)*) => {
15 ::html_node::Node::Text(::html_node::Text {
16 text: ::std::format!($($tt)*),
17 })
18 };
19}
20
21#[macro_export]
28macro_rules! unsafe_text {
29 ($($tt:tt)*) => {
30 ::html_node::Node::UnsafeText(::html_node::UnsafeText {
31 text: ::std::format!($($tt)*),
32 })
33 };
34}