On Sun, Aug 21, 2011 at 6:33 AM, Tomek Pluskiewicz <[email protected]> wrote:
> I'm not sure I follow. On ViewRequest there is just a single layout name.
> Not an array. That imposes a question. What do I do to pass multiple, nested
> layouts the way it was possible with MR2's LayoutsAttribute?

Just change the signature on ViewRequest. Also change ViewResult and
variations.

> Also I'm not sure where is that ViewRequest really created.

I believe the implementation of ActionResults does.

> Another thing I find missing is the possibility to choose View/Layout on
> ContentNegotiatedResult. Otherwise how is is possible to choose layout and
> view when client requests html?

Actually it is possible, since you can customize the "action" for a
mime type. Something like

var result = new ContentNegotiatedResult(..);
result.When(MimeType.Html, () => new ViewResult(...));


> I need the implicit cast temporarily until there is a better way to wrap up
> transitions with Spark. Verbose enough I just didn't want another ToString()
> call and I was surprised I couldn't find that implicit casting... For now I
> simply derived in C#.

What's the signature in C#? I may try to translate it to f# here and test it...



-- 
Cheers,
hammett
http://hammett.castleproject.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
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