Using CodeSmith Projects covers the following sections:
You can also check out this video tutorial on this subject: