split template definitions to .inl files