render child requests in razor views #671

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants

This is a proof of concept on rendering child requests within views.
This allows for more modular view pieces than you get with Partial
views, as the parent doesn't have to worry about constructing the model
for the child view piece. To see the proof in action, launch the
Nancy.Demo.Hosting.Aspnet project and browse to the /viewwithchildview
route.

render child requests in razor views
This is a proof of concept on rendering child requests within views.
This allows for more modular view pieces than you get with Partial
views, as the parent doesn't have to worry about constructing the model
for the child view piece.  To see the proof in action, launch the
Nancy.Demo.Hosting.Aspnet project and browse to the /viewwithchildview
route.
Owner

grumpydev commented Sep 5, 2012

Will check this for perf, and probably hide the actual engine from the context behind some kind of facade, rather than expose the engine directly.

Member

phillip-haydon commented Jun 10, 2014

We already support Partials now in Razor so I don't think this is required anymore.

@thecodejunkie I vote to close this.

Member

damianh commented Jun 12, 2014

Closing this because A) partials and B) Almost 2 years old and no other user has weighted in. @thecodejunkie re-open if you disagree.

@damianh damianh closed this Jun 12, 2014

Owner

grumpydev commented Jun 12, 2014

I started something that did the same thing a while back too, with storing the engine in the context and allowing rendering through it.. will finish it at some point :)

@damianh damianh removed this from the Future milestone Jun 12, 2014

@grumpydev Was it ever finished? I read it was going to be in 0.18..

Member

phillip-haydon commented Aug 20, 2015

@uluhonolulu we don't support rendering routes inside views. It's currently not finished and not on the table. There's very little reason to support it now that most web applications are moving serverside rendering to the client. Besides we already support partials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment