Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute paths do not include from baseDir #55

Open
mdevnull opened this issue Sep 29, 2023 · 0 comments
Open

Absolute paths do not include from baseDir #55

mdevnull opened this issue Sep 29, 2023 · 0 comments

Comments

@mdevnull
Copy link

According to the pug documentation absolute include paths should include from basedir and relative from the currently compiled file.
Currently all paths are handled as relative.

Pug docs quote:

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.

Current handling:
https://github.com/Joker/jade/blob/master/jade_parse.go#L486-L489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant