I would like to use the Razor engine without viewing (cshtml) files, but line by line. I want to do this from MVC, I saw examples that use
new RazorViewEngine().Render
but I canโt find the Render method, is this something from the old days of MVC?
I also saw examples that use Razor.Parse, but I also canโt find it - there may not be a link (but it should be there if I already use MVC, right?)
Is it possible to use Razor at all if all I have to do is enter 3-4 parameters in an HTML string? I think I'm a bit in love with MVC right now and maybe not thinking directly. I plan to cache HTML strings in memory and just transfer samples from the database.
thanks
Madd0g
source share