Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Ewwii-sh/xmlman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

This project has been deprecated in favour of the gtk_ui feature added in ewwii.

XmlMan

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.

Install

XmlMan is available in the eii-manifests. So you can use eiipm to to install it:

$ eiipm i xmlman

Example

XML Input

<?xml version="1.0" encoding="UTF-8"?>

<Root>
    <Window name="Banana">
        <Button label="Click me"/>
    </Window>
</Root>

Transpiled Rhai Output

fn Banana_child() {
    button(#{ "label": `Click me` })
}

enter([
    defwindow("Banana", #{  }, Banana_child())
])

Releases

No releases published

Packages

No packages published

Languages