How to build a ionic template engine?

i am a new ionicer. i want to seperate out the templates, controllers, and services into a good format that will be sustainable for maintaining.i use velocity and freemarker,but i donnot know how to build a ionic template engine?

Install any of the starter templates in step 2 of this http://ionicframework.com/getting-started/ to get an idea of how its structured and work from that. That’s probably the best structure because it’ll be easy to update your project when newer versions of ionic come out.