Warning
This project has been deprecated in favour of the gtk_ui feature added in ewwii.
XmlMan is an elegant XML-to-Rhai transpiler for Ewwii, designed to make UI definitions and data structures concise, expressive, and scriptable. It combines the readability of XML with the flexibility of Rhai scripting, giving you precise error reporting without the struggle of Ewwii's Rahi API's.
XmlMan is available in the eii-manifests. So you can use eiipm to to install it:
$ eiipm i xmlman<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Window name="Banana">
<Button label="Click me"/>
</Window>
</Root>fn Banana_child() {
button(#{ "label": `Click me` })
}
enter([
defwindow("Banana", #{ }, Banana_child())
])