0

How can define a custom block like @for in Razor view? I read about @helper here and here also there is a similar question here but @helper method just define html tags at first then when you want to use in views just can pass some parameters, in other hand @for block is that I want, in views you can pass Html (with intelligence support), Does any one have any idea about this? I also think about modify razor source code! (if possible) Is there any better way?

Community
  • 1
  • 1
Saeid
  • 13,224
  • 32
  • 107
  • 173
  • argh - want to follow the question here but am struggling. can you elaborate a little on the required use case plz.. – jim tollan Mar 07 '12 at 11:51

1 Answers1

1

You may take a look at Razor Templated Delegates.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928