Skip to content
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

Docs for #741 (this.page in shortcodes) #1044

Closed
zachleat opened this issue Mar 26, 2020 · 3 comments
Closed

Docs for #741 (this.page in shortcodes) #1044

zachleat opened this issue Mar 26, 2020 · 3 comments

Comments

@zachleat
Copy link
Member

zachleat commented Mar 26, 2020

The page data is now available inside of shortcodes callbacks under this.page in Nunjucks, Liquid, and 11ty.js JavaScript templates.

Handlebars shortcodes already exposed all data under this (a behavior built-in to handlebars) and as such will also have this.page exposed in the same way.

@zachleat
Copy link
Member Author

If you saw this last night, it changed today :)

@zachleat
Copy link
Member Author

Also made this compatible with eleventy-plugin-vue https://github.com/11ty/eleventy-plugin-vue/ starting in v0.0.6

@zachleat zachleat changed the title Docs for #741 Docs for #741 (this.page in shortcodes) Apr 29, 2020
@zachleat
Copy link
Member Author

https://www.11ty.dev/docs/languages/nunjucks/#access-to-page-data-values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant