-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
eleventyConfig.augmentFunctionContext
to add this.eleventy
and this.page
to the context of any function (but mostly for filters/shortcodes)
#3355
Comments
Fixed by 26d26b7 |
This might be a really useful thing for my TSX stuff. |
@pauleveritt Yeah absolutely! |
Shipped with 3.0.0-alpha.15 https://github.com/11ty/eleventy/releases/tag/v3.0.0-alpha.15 |
Revisiting this, with the addition of an import { augmentKeys } from '@11ty/eleventy/src/Engines/Util/ContextAugmenter.js'; Does it make sense to mark As an aside, I just came across #3422 which makes the suggestion to do away with usage of Removal of dependence on |
I think this might solve some of the problems I was facing which led me to open #3422, but I don't see any docs for |
Temporary docs preview deploying here https://11ty-website-git-v3-11ty.vercel.app/docs/languages/custom/#compile |
Thanks for this @zachleat! After getting more educated on the implementation for my use case in I did stumble upon one thing though, I see |
Sample usage here creating a Nunjucks shortcode from scratch:
eleventy/test/EleventyTest.js
Lines 1435 to 1445 in 26d26b7
Related to #3310 and noelforte/eleventy-plugin-vento#9
The text was updated successfully, but these errors were encountered: