More votes for CodeSmith
I'd like to second this - CodeSmith is shaping up to be a
huge timesaver in the group I work in. The code templates
are pretty intuitive once you realize that they're
basically just like inline ASPX code, so if you've hacked
inline ASP for years you'll be right at home.
...
This is an amazing product. It paid back our time
investment quickly, and with huge dividends.
First of all, thanks for the glowing review!
I'm not sure if you know this or not, but CodeSmith does not
constrain you to inline code. You can do one of two things:
1. Include a Src attribute in your
CodeTemplate directive. When this
attribute is specified, just like in ASP.NET, it will
dynamically compile the source file into the same assembly
as the template code. You will also need to specify the
Inherits attribute to have your
template derive from a class in the source file.
2. Create your base template class in Visual Studio.NET and
compile it to a .dll. Then using an
Assembly directive add a reference to this
.dll. You may then specify an
Inherits attribute in the
CodeTemplate directive to inherit from a
class in the assembly or just make use of any other class in
the assembly within your template code. You can also use an
Imports directive to avoid having to type
fully qualified type names.
Basically, CodeSmith tries to resemble ASP.NET as much as
possible. And, with the glaring exception of the equivalent
of server controls and data binding, it does a pretty good
job of this.