-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centralized directory references for input/output/layouts/data/includes, changes Virtual Templates to be input dir relative. #3244
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zachleat
changed the title
Centralized directory references for input/output/layouts/data/includes
In progress: centralized directory references for input/output/layouts/data/includes
Apr 6, 2024
Ooh, cool! :D I especially love the simplified constructors! 🥳 |
zachleat
changed the title
In progress: centralized directory references for input/output/layouts/data/includes
Centralized directory references for input/output/layouts/data/includes, changes Virtual Templates to be input dir relative.
Apr 8, 2024
Shipping with 3.0.0-alpha.6 |
zachleat
added
the
feature: 🛠 configuration
Related to Eleventy’s Configuration file
label
Apr 10, 2024
This was referenced Apr 10, 2024
|
zachleat
added
the
needs-documentation
Documentation for this issue/feature is pending!
label
Sep 20, 2024
zachleat
added a commit
to 11ty/11ty-website
that referenced
this pull request
Sep 26, 2024
Temporary preview url deploying here: https://11ty-website-git-v3-11ty.vercel.app/docs/data-eleventy-supplied/#eleventy-variable |
zachleat
removed
the
needs-documentation
Documentation for this issue/feature is pending!
label
Sep 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Preparation for #67 and #1503 and #2307.
Assisting on #1612 (making virtual template paths relative to input dir).
The biggest practical change here is that you’ll be able to reference Eleventy’s full resolved
directories
in plugins and configuration files. This will include values set via command line arguments #2729.Command Line
However, if you pass
--input
or--output
directories in on the command line, the values will be correct #2729, e.g.npx @11ty/eleventy --input=content
:When returning
dir
in your config:This works as expected with plugins. Use
addPlugin
to get the correct values (plugins run in a second stage).If you don’t use
addPlugin
, you’ll get the wrong values. (Fixed with newconfig
export #3246)