DevGuide completely separated the frontend from the backend, linked together by defining method names for events. When you compiled the backend, it would generate any changes from the frontend description — I don’t remember the file format but it was probably proprietary.
It was so easy I could do any non-graphics GUI w/ minimal effort. Sadly, it looks effectively absent from the internet.
Since you asked, I’d prefer Ruby, but if you delivered something like DevGuide I’d even learn Python.
A builder for egui[1] would be awesome.