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 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.