adoconnection / RazorEngineCore

.NET6 Razor Template Engine
MIT License
576 stars 85 forks source link

Include and Layout Wiki is outdated with current RazorEngine.Compile() method #110

Closed bastienJS closed 2 years ago

bastienJS commented 2 years ago

check this link: https://github.com/adoconnection/RazorEngineCore/wiki/@Include-and-@Layout

With the latest RazorEngineCore version the .Compile("template") has no overload to accept a Dictionary<string, string> like you show in your wiki documentation.

How do I pass the parts to the Compile method then? Can not find any sample! :-)

bastienJS commented 2 years ago

OK I could not believe that there is unversioned code below in the wiki which I should copy/paste into my solution because of the comment: Maintainer strongly believes implementing @include and @Layout is unnecessary complexity for standalone RazorEngine.

very unusual approach!

adoconnection commented 2 years ago

Hi, it helps to keep breaking changes as low as zero :)