It would like to iterate through list and render partial view for each element:
<for each="Element elem in elements">
<render partial="partialViewName">
</for>
How should I pass elem to partial view? <render partial> doesn't have additional parameters. I can use html.RenderPartial, but I would like to use Spark syntax. Is it possible? It looks as if it needed to use the same ViewData and couldn't define its own model.
EDIT:
Partial view:
${elem.ID}
OK. I can use 'elem' in partial view, but partial view doesn't know what type 'elem' is. Of course everything will work, because generated view class compiles, but I have no Intellisense in partial view.