Adds an option to change file extensions

I merged in another commit into this one.  Let me know if this causes a headache and I'll resubmit the pull request.

Use case is where you templates use the extension `hjs` or maybe `tmpl` and you want it all spat out as `html`.