This will do nicely, thank you.
I’m a little confused about the usage of VirtualFiles. Essentially I just want to throw all my email templates in an EmailTemplates folder (with text and html versions)
And use my Dto name to generate each version
var templateNameHtml = typeof(dto).Name + “Html.html”
var templateNamePlainText = typeof(dto).Name + “PlainText.md”
I see this blurb about Resolution
There's no forced special centralized folders like /Views or /Views/Shared required to store layouts or share partials or artificial "Areas" concept to isolate website sections. Different websites or sections are intuitively grouped into different folders and Templates automatically resolves the closest layout it finds for each page. Cascading resolution also applies to including files or partial pages where you can use just its name to resolve the closest one, or an absolute path from the WebRootPath to include a specific partial or file from a different folder.
But where do I search for or register all my templates? Upon startup Config, would I want to scan my folder for all files of type html and md in a specific folder and write them similarly to the Email Example?