TemplateMaschine

Free open source library (released under LGPL) that processes templates written in C# (using an ASP.NET like syntax) and outputs the results to either a file or a string.

Features include:- templates use ASP.NET-like syntax- you write your templates in C#, which can also reference other assemblies and import namespaces- templates can be called with arguments- templates can be loaded from a file or embedded as a resource in an assembly, which is useful if you want to write "packaged" generators- templates can include other templates- script blocks with custom functions and variables can be added to a template- the template processor is command line based, and so, can be used to include template processing in build-scripts like NAnt- includes error handling, which means that line number and error information are provided in case of syntax errors in your templates- intermediate generated template code can be written to a file for debugging purposes- code is written in C#