Open Icehunter opened 9 years ago
@Icehunter I've never tried using multiple layouts. Can you put your changes into a Pull Request so I can see the difference and test more easily? Thanks!
I definitely can. Give me a few days, still recovering from adult onset chicken pox...
@Icehunter How did you resolve your issue?
I have the following setup with hapij 8.4.0:
No matter what I usually try I'm unable to specify layout files dynamically as I get a ENOENT errors.
My current layout file is:
If I set layout to true with hapijs view options then the layout renders with no issue but splash page does not load.
I've modified the signature of my internal use of hapi dust to something like this:
Instantiate it like so:
I can now do the following in a dust file:
Is there a way or example out there on how-to use multiple layouts and this plugin rather than changing the code?
Thanks for the great work!