Documentation
#![feature(once_cell)]
#![recursion_limit = "1024"]

use yew::prelude::*;

pub mod items;
pub mod pages;

pub struct Entrance {}

impl Component for Entrance {
    type Message = ();
    type Properties = ();

    fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
        Self {}
    }

    fn update(&mut self, _: Self::Message) -> ShouldRender {
        true
    }

    fn change(&mut self, _: Self::Properties) -> ShouldRender {
        false
    }

    fn view(&self) -> Html {
        let sidebar = items::Sidebar {}.render();

        html! {
        <>
        <header></header>
        <main>
        {sidebar}
        <section>
        <article>
            {items::example("Template")}
            {items::example("Component")}
            {items::example2("Tuple")}
            {items::example("Class")}
            {items::example2("Method")}
            {items::example("Function")}
            {items::example2("get")}
            {items::example("Set")}
            {items::example2("plus")}
            {items::example2("times")}
            {items::example("None")}
            {items::example("Null")}
        </article>
        </section>

        </main>
        </>
        }
    }
}