Add template service to compile all function use template.
Add interface to generate file