Regarding View Component sections in Spark.

Lambdas may tricky with Spark. Most of it's syntax get wrapped in an 
TextWriter#Write call. Even if it parses into a C#, at the moment complex 
anonymous methods will be tricky. I will be looking to resolve this issue 
with Spark's team.

Anyway I understand that the principle is to pass sections' content template 
to a property and then it would be resolved inside view component's view. Is 
that right?

Spark tries to get as much XML-like as possible and so, viewcomponents look 
similarilly to the below:

<SomeComponent SomeProperty="variable">
   <SomeSection>
       <td>
          ${item.Name}
       </td>
   </SomeSection>
</SomeComponent>

In the way MonoRail 1/2 view component sections were openly declared this 
was easy. With the new ways I guess some plumbing is inevitable ;)

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/castle-project-devel/-/Gr2JdUmSEicJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en.

Reply via email to