better structure
This commit is contained in:
+6
-1
@@ -3,8 +3,13 @@ use std::fmt::Debug;
|
||||
pub mod components;
|
||||
pub mod macros;
|
||||
|
||||
pub trait Component: Debug {}
|
||||
pub trait Component: Debug {
|
||||
fn render(&mut self) -> String {
|
||||
String::new()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct ComponentParams {
|
||||
pub children: Vec<Box<dyn Component>>,
|
||||
pub expr: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user