template to .c