PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
611 stars 56 forks source link

Fixed #695: Allow custom HTML templates #729

Closed davesmith00000 closed 2 months ago

davesmith00000 commented 2 months ago

Relates to https://github.com/PurpleKingdomGames/indigo/issues/695

This PR allows the user to supply their own directory to use as a template for the static site generated by Indigo.

It is not a clever solution, all it does is - if instructed - copy all the contents of the template folder into the normal output folder, before copying over assets and scripts into the folders you specify. Those folders must exist in your template folder, or the whole thing will blow up. :smile:

I'm sure it could use some refinement, but this seems like an excellent start that we can trying using and raising follow up issues against.