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
Since a lot of code for .net is based around viewcontexts it would be great to be able to pass a viewcontext to a template so that i can get a reference to it from helpers.
The function could be that any data passed to render would be accessable to helpers as a sort of state object.
Since templates compile to a Func<string,object> no passing of other things then.
Don't think this is possible now. Am i wrong?
Would it be regarded as in scope for this project?
Would you accept a pull request for it?
Activity
oformaniuk commentedon Oct 15, 2020
Looks related to /issues/368