OpenFL custom index.html template
The OpenFL library for Haxe contains a number of template files that are used when building a project. You can find them in the assets/templates directory. Using the <template>
element in project.xml, it's possible to replace one or more of these template files with custom versions, on a per-project basis, and without forking OpenFL.
This sample project contains a directory named custom-templates. It is configured in project.xml like this:
<template path="custom-templates"/>
Inside custom-templates, there's a file at html5/template/index.html. The relative path to this file matches the file named html5/template/index.html inside OpenFL's assets/templates directory.
To confirm that the custom html5/template/index.html is being used by the project, simply compile and run, and you'll see a different HTML page than usual.
openfl test html5
Sample created by Josh Tynjala, the author of Feathers UI and core contributor to OpenFL.