According to official documentation,
...a partials sub-directory... must be a directory under the views directory
Now let's suppose we have a multi-module app where each module has its own views directory, and we need to use some module-independent HTML fragments (maybe static, maybe containing some vars to be defined in appropriate controllers). Using partials appears a reasonable approach, but we cannot access views placed NOT under the this or that module views directory.
E.g. we have two modules:
- home
- orders
Each module has its own view dir:
- home
- -- views
- orders
- -- views
In plus we want to used some shared partial views from the dir shared/views:
- home
- -- views
- orders
- -- views
- shared
- -- views
Using the current implementation of partials gives no possibility to do so.
Any idea? Thanks in advance.