Simple preprocessor for c++ which adds support for inline XML with native c++ code gen. Made just for fun.
Example:
#include <iostream>
#include "../../cppxlib/cppxlib.hh"
#include "../../cppxgtk/cppxgtk.hh"
auto App() -> auto {
return cppx(
<Window title="Example: Meson + CPPX + GTK3">
<Text>Hello, world!</Text>
</Window>
);
}
cppx_main {
renderCPPX(App());
return 0;
}
More in example-meson-cppx-gtk
Order of attributes is important!!
Default orientation is vertical
<Text>some text</Text>
<Button ...>Some button label</Button>