Add front matter support to renderFile in the Render plugin
#4024
Replies: 2 comments
-
|
As noted in the docs https://www.11ty.dev/docs/plugins/render/#renderfile this is kinda by design (but only for implementation simplicity) I’m definitely not opposed to adding this. I would also note that custom templates do support front matter (just as evidence that it might be useful) https://www.11ty.dev/docs/languages/custom/ For complexity reasons I don’t think this would affect the data cascade at all—that data would be strictly localized to the renderFile instance. Putting this one into the enhancement queue, make sure you upvote it!
|
Beta Was this translation helpful? Give feedback.
-
|
That sounds awesome!!! Hope to see it implemented soon 🔥 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
I started using the
renderFileoption provided in the Render plugin: https://www.11ty.dev/docs/plugins/render/#renderfile. It works as expected, but when I use frontmatter in the rendered file, it doesn't seem to work.It would be very helpful to have that and make it work 11tysh 💯
In the rendered file:
Describe alternatives you've considered
Before finding the Render plugin I created a custom tag for my 11ty projects which works similar, but I couldn't make it process the nunjucks shortcodes and filters inside the included file:
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions