Describe the bug
if I have a valid c# razor string - @if (true == true) { <div> test </div> } it will display the if statement text instead of just "test".
To Reproduce
Insert the above text into this statement
var engine = new RazorLightEngineBuilder().UseEmbeddedResourcesProject(typeof(Program)).UseMemoryCachingProvider().Build(); string renderedTemplate = await engine.CompileRenderStringAsync(cacheName, rzString, new {test = "test"});
Expected behavior
I would expect <div>test</div> to be returned from the renderstring function
Information (please complete the following information):
Describe the bug if I have a valid c# razor string -
@if (true == true) { <div> test </div> }
it will display the if statement text instead of just "test".To Reproduce Insert the above text into this statement
var engine = new RazorLightEngineBuilder().UseEmbeddedResourcesProject(typeof(Program)).UseMemoryCachingProvider().Build(); string renderedTemplate = await engine.CompileRenderStringAsync(cacheName, rzString, new {test = "test"});
Expected behavior I would expect
<div>test</div>
to be returned from the renderstring functionInformation (please complete the following information):