SyntaxFix
Write A Post
Hire A Developer
Questions
Look at SubSonic (www.subsonicproject.com). They're doing exactly this to generate code - the template is standard ASPX, and it outputs c#. The same method would be reusable for your scenario.