Multi-Module Views

I have a few modules that I’m building that have interdependencies. I would love to have the ability to reference a view contained within another module when rendering the output of a handler from a separate module.

From what I can see in the RequestContext, it only checks the directory structure of the application as a whole and the currently active module. Would there be a good reason why we couldn’t modify this to also include the other view directories to search for the appropriate view?

Also, in the current code, which takes precedence? views in the application directory or views in the module?


Coldbox does have something like this built into the renderView function. You can pass in the module name along with the view you want to render so it can find the right view. Not sure if you can do anything like this with event.setView() though.