Replies: 3 comments 2 replies
-
we should go with there is a native RazorProjectEngine engine = RazorProjectEngine.Create(
RazorConfiguration.Default,
RazorProjectFileSystem.Create(@"."),
(builder) =>
{
builder.SetNamespace(options.TemplateNamespace);
SectionDirective.Register(builder);
}); I think we can go and implement directives in next releases so the engine will support what it support right now and can be extended with custom keywords |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for PR! The list of things to consider:
I like the idea to use readymade Razor directives, |
Beta Was this translation helpful? Give feedback.
-
Hi guys, is there any update on this? |
Beta Was this translation helpful? Give feedback.
-
I'm porting an app that uses the older RazorEngine library. RazorEngineCore is excellent, particularly the cleaner approach for building custom templates that support @html etc. The example at https://github.com/adoconnection/RazorEngineCore/wiki/@Include-and-@Layout provides good information for other kinds of support. However, I'm struggling to see any reasonably clean/robust way to support @section. Has anyone tried this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions