daqing/moon-templ/examples/site does not have a README file

    Post

    pub struct Post {
    title : String
    body : String
    published : Bool
    }

    One post of the page. A template's parameters are typed MoonBit, so the page takes the values it renders from the caller rather than reading them itself.

    layout

    page

    fn page(title : String, posts : Array[Post]) ->
    Component