Split templates from generator script