I have an Asp.Net Mvc 5 application backend. I want to add in my controller a function that creates html on the fly in a server folder. I want that this html is generated from template. Example:
Template:
<html><head/> <body> {CSharpVar} </body> </html>
in my controller:
MyObject mObj= new MyObject();
mObj.CSharpVar= "String TEst";
MyWantedClass.CreateHtml(htmlTemplate,mObj,outputPath);
What is the best way or best class to use?