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
If the path is absolute (e.g., include /root.pug), it is resolved by prepending options.basedir. Otherwise, paths are resolved relative to the current file being compiled.
If no file extension is given, .pug is automatically appended to the file name.
I believe this should be changed to match what is stated.
The text was updated successfully, but these errors were encountered:
Yoshi325
changed the title
(Jinja2) Relative file import does not work as expected
(Jinja2) Relative file include does not work as expected
Oct 27, 2023
Yoshi325
added a commit
to Yoshi325/pypugjs
that referenced
this issue
Oct 27, 2023
Description
I attempted to include a file relative to the current file. PugJS states (https://pugjs.org/language/includes.html):
However, the code here:
pypugjs/pypugjs/ext/jinja.py
Lines 112 to 120 in dd8d394
always prepends the basedir option if it is set.
I believe this should be changed to match what is stated.
The text was updated successfully, but these errors were encountered: