Feature removal: ambiguous layout file search #4033
zachleat
started this conversation in
Enhancement Queue
Replies: 5 comments
-
|
Docs for this at https://www.11ty.dev/docs/layouts/#omitting-the-layouts-file-extension |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like you have one or two extra words there :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Pushed a fix, thank you @j-f1! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Notably, this is being reverted! |
Beta Was this translation helpful? Give feedback.
0 replies
This comment has been hidden.
This comment has been hidden.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://www.11ty.dev/docs/layouts/#omitting-the-layouts-file-extension
I’d like to phase out the above feature and make it not enabled by default, with the option to re-enable via config option.
This feature requires potentially 10 or 11 file system checks (one per template extension) and the ordering is ambiguous. If you have a base.liquid and base.njk—which does it select? I think for this specific case it’s better to be explicit, especially as we improve incremental builds.
Beta Was this translation helpful? Give feedback.
All reactions