I am planning to write a asp like string parser to build a templatebased code generation engine. I ll post all my findings on this here.
Looks like I am not the first one to look at this issue. This is a useful link which suggests how others have accomplished asp like string parser.
http://www.dotnet247.com/247reference/msgs/24/121044.aspx
A Client-side Environment for ASP Pages
http://msdn.microsoft.com/msdnmag/issues/0900/cutting/
Dynamically Executing codes in .Net
http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htm
The Need for CodeGeneration (Textbox like asp)
http://www.sellsbrothers.com/tools/textbox
Templates in Ruby
http://freshmeat.net/articles/view/447
A Text Template Class for C#
http://www.codeproject.com/csharp/nettemplate.asp
Project: Asp Template in SourceForge
http://asptemplate.sourceforge.net/
http://sourceforge.net/project/showfiles.php?group_id=28257