adoconnection / RazorEngineCore

.NET6 Razor Template Engine
MIT License
585 stars 88 forks source link

Added ability to set the template filename #84

Closed Yazwh0 closed 2 years ago

Yazwh0 commented 3 years ago

Adds RazorEngineCompilationOptions.TemplateFilename, which is used if not empty or whitespace. If it is it falls back to the existing Path.GetRandomFilename().

This is helpful for debugging which templates are causing errors as we can pass the error to to the user without additional information.