How to add html using Razor templates from database to views at runtime
问题 In ASP.NET Core 5 MVC shopping cart application users can change shipping price calculation, discount options and other such things at runtime. They are editing Razor templates in text editor outside Visual Studio and outside application using non .NET application. Those templates are saved in database. Views contain hook calls: @inherit ViewPageBase<object> <head> @Hook(ElementName.BeforeHeadContent) ... <body> @Hook(ElementName.Body) ... @Hook(ElementName.Footer) ... </body> Hook method is