Generate CCD templates as modules