I guess i have a simple question about better code organization.
Say i have multiple apps that also implement how these apps should be represented on presentation layer.
I am trying to understand how to organize the code if i need to present multiple apps on one page without using frames of course?
Quick example: say I have two apps (app1 and app2) both implmeneting their coresponding model and views. Now i need my index page to contain presentation of these two views. How can i implement the generic view that still utilizes the app views instead of going to their models directly?
I would prefer my app to control its view still.
Thanks
I think you may use render_to_string shortcut
Thus in app views you put:
and then in index view something like this:
PS: Also after i wrote this it doesn’t look very nice (it looked better in my head 🙂 ).