views:

32

answers:

1

I need to get data from a database and I need to spit out this data in html formatk using my command line app. For this I am planning to use some sort of template-engine. I was wondering if there is anything in .NET that can do this for me?

The best option would be if I could reuse the asp.net mvc template engine (razor) in my app, this way I should not need to reinvent the wheel.

+1  A: 

You can use Razor outside ASP.Net, the current release is somewhat crippled, so you have to use some hacks, but it will be simplified in the final release.

Jan Jongboom
The hyperlink has a good resource. The author of the blog is on the team that is writing the Razor parser.
kbrimington
If you like an answer, then upvote it. If you have an addition to an answer then edit it. Collaborative websites ftw :-)
Jan Jongboom
@Jan +1 for the answer. Thanks for the link! I will check it out.
gyurisc