C# template engine

Posted by me on Stack Overflow See other posts from Stack Overflow or by me
Published on 2009-10-05T09:05:08Z Indexed on 2010/05/09 23:18 UTC
Read the original article Hit count: 188

Filed under:
|

Hi!

I am looking for a stand-alone, easy to use from C# code, template engine. What I want to do is create an html and xml files with placeholders for data, and fill them with data from my code. The engine needs to support loops (duplicating parts of the template form more that one object) and conditions (add parts of the template to the final html/xml only if some conditions are true). Can someone recommend a good option for me, and add a link to more-or-less such code sample, and some documentation about how to use the recommended component for my needs?

Thanks:)

Just wanted to add one more thing - I also need to use loops to duplicate table rows, or even entire tables (in the html version) and complex elements (in the xml version) Thanks again:)

© Stack Overflow or respective owner

Related posts about template-engine

Related posts about c#