Tell us about your environment
- MarkBind Version:
v1.17.2
What did you do? Please include the actual source code causing the issue.
|-- a
| |-- b.md
|
|-- index.md
|-- site.json
index.md
{% from "a/b.md" import variable %}
What did you expect to happen?
if command is run within a folder
C:/a> markbind build
Variable in b.md will be imported into index.md.
What actually happened? Please include the actual, raw output.
error: Template render error: (unknown path)
Template render error: (unknown path)
Error: template not found: a/b.md
nunjucks looks for file wrt to the cwd which will be C:/a/. It should find it wrt to site config directory, ie root folder of site. Alternatively it should be wrt to the current file.
Considerations: fix must work for sub sites.
Tell us about your environment
v1.17.2
What did you do? Please include the actual source code causing the issue.
index.mdWhat did you expect to happen?
if command is run within a folder
C:/a> markbind buildVariable in b.md will be imported into index.md.
What actually happened? Please include the actual, raw output.
nunjucks looks for file wrt to the cwd which will be
C:/a/. It should find it wrt to site config directory, ie root folder of site. Alternatively it should be wrt to the current file.Considerations: fix must work for sub sites.