Antaris / RazorEngine

Open source templating engine based on Microsoft's Razor parsing engine
http://antaris.github.io/RazorEngine
Other
2.14k stars 577 forks source link

RazorEngine.Text.RawString and regular MVC #533

Open cblaze22 opened 5 years ago

cblaze22 commented 5 years ago

Why isnt new RazorEngine.Text.RawString working for a regular MVC partial? It works with Engine.Parse, but the output in a regular MVC page shows HTML tags.

I can't use Html.Raw, because the same view is used by RazorEngine which needs new RazorEngine.Text.RawString.

Will I have to have two views, one for the RazorEngine and one for a regular ASP.NET MVC page? I would hate to duplicate the markup just for this.

cblaze22 commented 5 years ago

Is anyone supporting this?