You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I do not like the fact that templates calling "micro-template(s)" have to be aware of the structure of the project. Right now they have to know where are, from the root of the project, theses rendered files.
Describe the solution you'd like
I would love to be able to pass the "root path" when initializing this plugin.
.eleventy.js
blogpost.md is in /site/_themes/grayTheme/_includes/blocks
Describe alternatives you've considered
So far - I am a nunjucks only kinda guy - I can render file(s) from a pre-called nunjucks environment.
Additional context
As you can see in the example I gave before I often have the includes & layouts folders under some theme logic like: /site/_themes/grayTheme/_includes for example. I have that "logic" inside the config file of course, but don't want to carry it around in templates.
Thanks
The text was updated successfully, but these errors were encountered:
it seems not possible to load external file with renderFile like : {% renderFile "https://raw.githubusercontent.com/bonfire-networks/blog/master/code_of_conduct.md" %}
Any idea how to do it?
Is your feature request related to a problem? Please describe.
I do not like the fact that templates calling "micro-template(s)" have to be aware of the structure of the project. Right now they have to know where are, from the root of the project, theses rendered files.
Describe the solution you'd like
I would love to be able to pass the "root path" when initializing this plugin.
.eleventy.js
any template
blogpost.md is in
/site/_themes/grayTheme/_includes/blocks
Describe alternatives you've considered
So far - I am a nunjucks only kinda guy - I can render file(s) from a pre-called nunjucks environment.
Additional context
As you can see in the example I gave before I often have the includes & layouts folders under some theme logic like:
/site/_themes/grayTheme/_includes
for example. I have that "logic" inside the config file of course, but don't want to carry it around in templates.Thanks
The text was updated successfully, but these errors were encountered: