Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

What happened to the @helper directive in Razor ? #4127

Closed
Bartmax opened this issue Feb 21, 2016 · 2 comments
Closed

What happened to the @helper directive in Razor ? #4127

Bartmax opened this issue Feb 21, 2016 · 2 comments

Comments

@Bartmax
Copy link

Bartmax commented Feb 21, 2016

@helper BgImage(string url){
    <a style="background-image:url(@url)"></a> 
}

result:
The helper directive is not supported.

@NTaylorMullen
Copy link
Member

@helper was removed a while back due to Razor content now being async. At some point we had intention to re-add it but it's since fallen out of scope.

@Bartmax
Copy link
Author

Bartmax commented Feb 21, 2016

ok, ty .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants