Single file source generation pattern.