blob: 6bc029a0ea0417094b5b818d7a8c72f78b0d71f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
use leptos::prelude::*;
use leptos::{component, view, IntoView};
// use crate::data::content::ContentController;
#[component]
pub fn WikiPage(
url_path: String,
) -> impl IntoView {
// let content_controller = use_context::<ContentController>().unwrap();
// let _snapshot = Resource::new(
// move || (url_path.clone(), content_controller.clone()),
// |url_path: String| {
// let page_path = url_path.clone();
//
// async move {
// let content = content_controller.get_snapshot().await;
// let page = content.page_paths.get(&page_path);
// }
// });
view! {
<h1>Article (Viewing)</h1>
<p>Page render</p>
}
}
|