summary refs log tree commit diff
path: root/modules/site_test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/site_test')
-rw-r--r--modules/site_test/src/main.rs28
1 files changed, 7 insertions, 21 deletions
diff --git a/modules/site_test/src/main.rs b/modules/site_test/src/main.rs
index 55432d9..ba40ede 100644
--- a/modules/site_test/src/main.rs
+++ b/modules/site_test/src/main.rs
@@ -25,28 +25,14 @@ struct ParentLayout {
 
 impl Component for ParentLayout {
     fn render(self: Box<Self>) -> Vec<RenderNode> {
-        let test = morx! {
-            html lang="en-US" {
-                head { title { "test thing" } }
-                body { "some document" }
+        morx!{
+            html lang = "en-US" {
+                head {
+                    title = "test thing"
+                }
+                body = {self.children}
             }
-        };
-
-
-        vec![
-            RenderNode::Element { name: "html".to_string(), attributes: HashMap::from([("lang".to_string(), "en-US".to_string())]), children: vec![
-                RenderNode::Element { name: "head".to_string(), attributes: HashMap::new(), children: vec![
-                    RenderNode::Element { name: "title".to_string(), attributes: HashMap::new(), children: vec![
-                        RenderNode::TextNode { content: "test thing".to_string() }
-                    ] }
-                ] },
-                RenderNode::Element {
-                    name: "body".to_string(),
-                    attributes: HashMap::new(),
-                    children: self.children,
-                },
-            ] }
-        ]
+        }
     }
 }