use crate::{components::layout::Layout, state_enums::GameState}; use perseus::prelude::*; use sycamore::prelude::*; fn index_page(cx: Scope) -> View { view! { cx, Layout(game = GameState::Pool) { // Anything we put in here will be rendered inside the `
` block of the layout p { "Hello World!" } br {} } } } #[engine_only_fn] fn head(cx: Scope) -> View { view! { cx, title { "Index Page" } } } pub fn get_template() -> Template { Template::build("").view(index_page).head(head).build() }