My webapp can be accessed in two different contexts. I want to be able to render the same view with two different layouts based on the context.
Is there a way to dynamically set the layout of the views based on the context? ie, if I have a param value which indicates the context type, can I change the layout dynamically?
Any help would be appreciated.