Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating html files in a console application

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.

like image 552
gyurisc Avatar asked Jun 11 '26 18:06

gyurisc


1 Answers

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.

like image 194
Jan Jongboom Avatar answered Jun 14 '26 06:06

Jan Jongboom