You can download a set of templates here that are compatible with CodeSmith v2.6 (the free version) for custom DotNetNuke 4.x module development. Like .NET Tiers, these use a master template to control a number of subtemplates, allowing you to set all your property values once and then generate multiple output files:
Currently there are only templates for VB.NET, but a C# set, along with several other improvements, is on my To Do List.
Periodic updates will be available from the download section of my website. If you run into any problems or have any suggestions for improvement, please feel free to leave a comment in my site's forum.
Attribution: Much of the template code is based on the DNN 3 templates created by Vicenç Masanas. I've also borrowed heavily from both the .NET Tiers and NHibernate templates for generating output files and stripping table prefixes. Also, the code for the View.ascx file and codebehind is based on a great series of articles by Michael Washington here.