with ibator,generate code with template