toddams / RazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core
Apache License 2.0
1.51k stars 261 forks source link

Fix: respect DisableEncoding for cached templates (with test) #373

Closed HamiltonManalo closed 3 years ago

HamiltonManalo commented 3 years ago

Added a test to confirm the changes work as expected Changed RazorLightEngineBuilder to use the options object passed in by UseOptions(). I also found there could be options being overwritten between an options object passed in and fluent configuration, so some checks were added which will throw an exception if a conflict is found. Added several more tests to confirm that the above changes work, test suite passed