Hello together, i've read this thread and i played around with the examples to get into it for a small tool i am working on...
I am not a genious and at the very beginning of my nim-lang journey - so please ban me not for the question: Which HTML5-Controls can i use with mono? I tried to setup a "Selection"-List - but it does not work: i even can't see the selection :( Here's my code: import base, mono/[core, http], std/os import base/log log_emitters.len = 0 type Hello = ref object of Component name: string input: string list: string proc render(self: Hello): El = proc send = echo self.input echo self.list el"": el("input", it.bind_to(self.name)) el("textarea", it.bind_to(self.input)) el("button.primary", (text: "Done"), it.on_click(send)) el("selection",it.bind_to(self.list)) if not self.name.is_empty: el("span", (text: "Hello " & self.name)) let asset_path = current_source_path().parent_dir.absolute_path run_http_server((() => Hello()), asset_paths = @[asset_path], styles = @["/assets/twitter.css"]) Run