summary refs log tree commit diff
path: root/src/components/editor/mod.rs
blob: 4d38c698030a9fbb2c3d17e4a3359dc8f3518e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;
use morgana::{morx, Component, RenderNode};

stylance::import_crate_style!(styles, "src/components/layout/layout.module.css");

pub struct Editor {
    page_path: PathBuf,
}

impl Component for Editor {
    fn render(self: Box<Self>) -> RenderNode {
        morx! {
            h1= "Article (Editing)"
            p= "Page render"
            pre= {self.page_path.to_string_lossy()}
        }
    }
}