Make the compiler preserve the template folder structure

I want to be able to structure my templates in folders and have that
reflected in the JS template object that is created