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

renderContent Universal Filter in Render Plugin #3370

Closed
zachleat opened this issue Jul 18, 2024 · 3 comments
Closed

renderContent Universal Filter in Render Plugin #3370

zachleat opened this issue Jul 18, 2024 · 3 comments

Comments

@zachleat
Copy link
Member

zachleat commented Jul 18, 2024

---
hi: "{% test %}"
---
{{ hi | renderContent("njk") }}

Related to #3369

This is different from:

---
hi: "{% test %}"
---
{% renderTemplate %}{{ hi }}{% endrenderTemplate %}

which renders plain raw text {% test %} because only the content {{ hi }} is rendered by the renderTemplate shortcode (not the return content inside the variable)

@zachleat
Copy link
Member Author

Shipping with 3.0.0-alpha.18

@zachleat zachleat added the needs-documentation Documentation for this issue/feature is pending! label Jul 18, 2024
zachleat added a commit that referenced this issue Jul 18, 2024
zachleat added a commit that referenced this issue Jul 18, 2024
@mar-ver
Copy link

mar-ver commented Jul 25, 2024

Amazing Thanks!

@zachleat
Copy link
Member Author

Temporary docs preview URL deploying here: https://11ty-website-git-v3-11ty.vercel.app/docs/plugins/render/#rendercontent-filter

@zachleat zachleat removed the needs-documentation Documentation for this issue/feature is pending! label Sep 27, 2024
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

2 participants