If you are seriously using CodeSmith you will know about the merge functionality. True, with introduction of partial classes in .net 2 the need for merging is greatly reduced, but still it is very useful. How it works, very briefly? You define markers