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 for expanding string arguments into paragraphs
///
/// example
/// ```rust
/// use webui::prelude::*;
///
/// fn page(contexts: Contexts) -> Html {
///     html! {
///         {paragraphs!(
///             "This is the first paragraph.",
///             "This is the second paragraph. With multiple sentences."
///         )}
///     }
/// }
/// ```
#[macro_export]
macro_rules! paragraphs {
    ( $($x:expr ),* ) => {
        html! {
            <>
            $(
                <p>{$x}</p>
            )*
            </>
        }
    };
}