Looks hard-coded to me:
https://github.com/mojolicious/mojo/blob/master/lib/Mojolicious/Renderer.pm#L212
sub _next {
my $stash = shift;
return delete $stash->{extends} if $stash->{extends};
return undef unless my $layout = delete $stash->{layout};
*return join '/', 'layouts', $layout;*
}
What about this?
templates
└── layouts
├── desktop
└── mobile
@@ home.html.ep
% layout 'desktop/default.html.ep';
On Fri, Jan 25, 2019 at 1:27 AM Viktor Nacht <[email protected]> wrote:
> Is it possible to specify alternative layout directories? Rather than put
> all my layouts in a single directory, I wanted to do something more like
> this:
>
> templates
> ├── desktop
> │ └── layouts
> └── mobile
> └── layouts
>
>
> This is just a very simplified example, not my literal application.
>
> V
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.