Lustre's CLI and development tooling: zero-config dev server, bundling, and scaffolding.
at main 750 B view raw
1// IMPORTS --------------------------------------------------------------------- 2 3import lustre/effect.{type Effect} 4import lustre/element.{type Element} 5 6// MODEL ----------------------------------------------------------------------- 7 8/// 9/// 10pub type Model { 11 Model 12} 13 14pub fn init(data: Nil) -> #(Model, Effect(Msg)) { 15 todo 16} 17 18// UPDATE ---------------------------------------------------------------------- 19 20pub opaque type Msg { 21 Msg 22} 23 24pub fn update(model: Model, msg: Msg) -> #(Model, Effect(Msg)) { 25 todo 26} 27 28// VIEW ------------------------------------------------------------------------ 29 30pub fn view(model: Model) -> Element(Msg) { 31 todo 32} 33 34pub fn prerender(data: Nil) -> Element(Msg) { 35 let #(model, _) = init(Nil) 36 37 view(model) 38}