I am wondering what is the best way to pass in data to the index.html template using a macro.
I can get a macro to run via the project.xml doing:
<haxeflag name="--macro" value="mcro.MyMacros.pageInfoMacro()" />
The problem there is I don’t know what the macro should be doing. Can it affect the Template.globals object for example?
It also seems that Haxe templates have some ability to run macros directly but I’m not sure how to pass a callback function within the OpenFL environment.
Any help is much appreciated, as I am stumped right now!