Basic template syntax

These pages cover the parts of a CodeSmith Generator template that you use in almost every template you write.

Page What you learn
The CodeTemplate directive The required first directive: template language, target language, inheritance, encoding and output options.
Including comments Add comments that never appear in the output, and comments that do.
Declaring and using properties Collect input with the Property directive, offer fixed choices with enumerations, and validate values.
Escaping ASP.NET tags Write <% tags to the output when you generate ASP.NET markup.
The CodeSmith Generator objects Use the CodeTemplate, Progress and CodeTemplateInfo objects from template code.

When you're comfortable with these, continue with advanced template syntax.