Nina.Application.View - a couple of ctor overloads

9 views
Skip to first unread message

Igor Loginov (aka ilog2000)

unread,
Dec 7, 2010, 7:06:07 AM12/7/10
to nina-dev
Is it possible to add a couple of Nina.Application.View ctor
overloads? I mean adding constructors with the signatures (string,
object) to use new { foo = "test" } as view data, and (string) if I
want to render some static content in the selected layout without
creating new Object().

Dotan N.

unread,
Dec 7, 2010, 7:46:02 AM12/7/10
to nina...@googlegroups.com
Hi Igor,
Sure, it can be done.

BTW, the long story is that i was also thinking to add things like

return Spark(...)
return NHaml(..)

this way we can support specific-view-engine functionalities.
For example, Spark supports anonymous types but all of the rest of the view engines don't, by definition

I'll look into it later today

Igor Loginov (aka ilog2000)

unread,
Dec 7, 2010, 9:41:05 AM12/7/10
to nina-dev
OK, thank you. I will be watching for updates on github.
Reply all
Reply to author
Forward
0 new messages