Ludi

Ludi is a tool that generates Haxe code for the Heaps.io game engine. It uses a custom markup file format similar to Vue single-file components.
Declare your scenes in a declarative language.
Program your logic in a programming language.
Installation
npm install -g ludi
Usage
ludi <component.hue>
Example.hue
This component:
<template>
<App>
<Text id="txt" :font="hxd.res.DefaultFont.get()" text="Foo" />
</App>
</template>
produces this code:
class Example extends hxd.App {
override function init() {
super.init();
var txt = new h2d.Text(hxd.res.DefaultFont.get());
txt.text = "Foo";
}
static function main() {
new Example();
}
}
See the tests folder for many more examples.