Revert "Merge pull request #158 from markknol/Haxe-template-extension-fix"

This reverts commit a896b03fab7684697ce8439dd9d99917bc0ca723, reversing
changes made to d18a58db561accf3b24badfbadb0b0a40828b1e4.