-
Notifications
You must be signed in to change notification settings - Fork 221
Remove the @helper directive from Razor #281
Comments
@Helper syntax was removed in ASP.NET 5 beta 4, see also: aspnet/Razor#281
@Helper is a simple construction that intended for frequent use in place. @Helper is not intended for an async code embedding or a detached code use. It is useful when we need to define tiny portion of the parameterized html-code inside the View-file and reuse it inside the same View-file. The most meaningful thing is direct access to a Model from @Helper. In other words, helper is a simple context-related part that completely depended on a concrete View-file. Delete of this functionality is a hooliganism. |
Implementation of the ViewComponents turned out horrible. |
@pranavkm, @ajaybhargavb, @yishaigalatzer
|
At this point, the design for the
@helper
directive seems incomplete vis-a-visBased on design discussion for aspnet/Mvc#1130, the current thought is to remove the
@helper
feature until we come up with a better design for these questions.The text was updated successfully, but these errors were encountered: