This project is read-only.

@helper with Orchard

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

Scott Gu just did a nice blog post on ASP.NET MVC 3 and the @helper syntax within Razor:

Is this usable with widgets in Orchard?

May 16, 2011 at 12:27 PM

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 7:37 PM
Edited May 16, 2011 at 7: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.