@helper with Orchard

Topics: Customizing Orchard, Writing modules
May 15, 2011 at 3:38 PM

Scott Gu just did a nice blog post on ASP.NET MVC 3 and the @helper syntax within Razor: http://weblogs.asp.net/scottgu/archive/2011/05/12/asp-net-mvc-3-and-the-helper-syntax-within-razor.aspx

Is this usable with widgets in Orchard?

May 16, 2011 at 11:27 AM

Can you think of any reason it wouldn't work in any Orchard templates? Why would widgets be any different to any other templates?

May 16, 2011 at 6:37 PM
Edited May 16, 2011 at 6:37 PM

I know of a couple of modules that do just that. I don't like it personally as custom shapes are just as easy, but when it's a matter of reusing existing code I can hardly argue against it.