This commit is contained in:
JMARyA 2025-01-13 18:38:55 +01:00
parent 37f65b6353
commit 4a537cd933
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -1,4 +1,4 @@
use maud::{PreEscaped, html}; use maud::{html, PreEscaped, Render};
pub mod search; pub mod search;
@ -155,3 +155,35 @@ pub fn script(script: &str) -> PreEscaped<String> {
}; };
) )
} }
// TODO : More UI primitives like flutter
// Row -> flex
pub struct Row(PreEscaped<String>);
impl Render for Row {
fn render(&self) -> maud::Markup {
html! {
div class="flex" { (self.0) }
}
}
}
pub fn test() {
html! {
(Row(PreEscaped("".to_string())))
};
}
// Grids
// ListViews
// ListTiles
// Cards
// FlowBite?