|more useful options|
Re^3: Mojolicious templatesby moritz (Cardinal)
|on Apr 30, 2013 at 17:39 UTC||Need Help??|
1-st I've wrote 'Mojolicious' not 'Mojolicious::Lite'
And Mojolicious::Lite is in the Mojolicious distribution. So without prior knowledge it's not obvious that you are excluding ::Lite.
2-nd If you wold look at http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Layouts you would see that even in __DATA__ section layout is under 'layouts/' path.
But it's not in a layouts directory, which you asked about.
Maybe if you gave use more background information (why is it so terrible to have layouts in the path? What do you want to achieve?) it would be easier for us to help you.
Anyway, grepping through the Mojolicious sources, I found only one place that hard-codes the path layouts, and that's in Mojolicious::Renderer method _extends. If you care enough, you can replace that method via monkey patching.
Or maybe you can store your templates somewhere else by using a simple symlink.