You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Currently, I cannot find an easy way to author/inject custom directives into Razor whilst using ASPNET Core Mvc(Kestrel).
I can see that the @Inject directive gets registered within razor here. Now if I wanted to inject a custom directive to MVC on startup how would I achieve that easily? Imagining for a second I wanted to create a '@FooInjector'.
I can see you offer access to RazorViewEngineOptions is this potentially where you guys would expose something like this?
The text was updated successfully, but these errors were encountered:
We plan on enabling this kind of thing once we have support for it in tooling.
While it would be possible for us to provide support for this in the runtime/compiler right now, the tools would not understand the new directives and would produce errors.
Currently, I cannot find an easy way to author/inject custom directives into Razor whilst using ASPNET Core Mvc(Kestrel).
I can see that the
@Inject
directive gets registered within razor here. Now if I wanted to inject a custom directive to MVC on startup how would I achieve that easily? Imagining for a second I wanted to create a '@FooInjector'.I can see you offer access to RazorViewEngineOptions is this potentially where you guys would expose something like this?
The text was updated successfully, but these errors were encountered: