summary refs log tree commit diff
path: root/modules/site_test/src/main.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2025-04-20 11:49:00 -0600
committerAshelyn Rose <git@ashen.earth>2025-04-20 11:49:00 -0600
commitb115605055e72c5a261f9f024d7db8f508517fc9 (patch)
tree294484b761030772ea3fadeb3a22ae3688528b80 /modules/site_test/src/main.rs
parent55dd47aff347ee882f375b5cf880a299e633f556 (diff)
Started proc_macro parsing - DOES NOT WORK
Diffstat (limited to 'modules/site_test/src/main.rs')
-rw-r--r--modules/site_test/src/main.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/site_test/src/main.rs b/modules/site_test/src/main.rs
index 7ef98a1..55432d9 100644
--- a/modules/site_test/src/main.rs
+++ b/modules/site_test/src/main.rs
@@ -1,6 +1,6 @@
 use std::collections::HashMap;
 
-use morgana::{Component, RenderNode};
+use morgana::{morx, Component, RenderNode};
 
 pub fn main() {
     let parent = ParentLayout {
@@ -25,6 +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" }
+            }
+        };
+
+
         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![