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.
When using the RenderPlugin you have to specifiy paths relative to the project dir.
This is very annoying when you want to put the template and the related css/js file in the same folder.
Describe the solution you'd like
At least for .liquid templates pass tagToken.file (the file where the tag is in) as context to shortcodeFn (https://github.com/11ty/eleventy/blob/main/src/Engines/Liquid.js#L172).
This would allow the RenderPlugin to access file from context.
When file is available the RenderPlugin could first try a relative path based on path.dirname(file) then fallback to a project relative path and finally error out if path is not found
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When using the RenderPlugin you have to specifiy paths relative to the project dir.
This is very annoying when you want to put the template and the related css/js file in the same folder.
Describe the solution you'd like
At least for .liquid templates pass tagToken.file (the file where the tag is in) as context to shortcodeFn (https://github.com/11ty/eleventy/blob/main/src/Engines/Liquid.js#L172).
This would allow the RenderPlugin to access
file
from context.When
file
is available the RenderPlugin could first try a relative path based onpath.dirname(file)
then fallback to a project relative path and finally error out if path is not foundDescribe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: