Putting locale in file name

So, we have run into multiple systems that we want to write out localized templates for using Middleman which expect the file name to have the localization code in it. (This is also the Apache standard)

Any ideas how I can get Middleman to output locales like:

  • index.en.html
  • index.es.html
  • index.fr.html