-
Notifications
You must be signed in to change notification settings - Fork 133
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
Cannot use nunjucks in a sub-site #931
Comments
Hmm what script produced this? I've tested with macros, if-else's, for loops and they seem to work fine |
This was just a guess, because nunjucks import statements need to specify the path from the root of the site. Perhaps it's already taken care of. |
Will test imports out as well
Yup, I used a markbind |
Tested the following: ✅
What fails is the following as mentioned:
ie. Will see if it can't be fixed |
possibly related #684 |
This is actually a serious flaw that went undetected because our only sub-site (se-edu/se-book) hasn't uses nunjucks up to now. It's good if we an fix it soon. |
The solution used in it is related, but instead of configuring one nunjucks instance per page, it should be one per (sub)site. In my initial attempt I found the solution added quite some repeated boilerplate on the existing variable processing logic (we have quite a bit of non-centralized, duplicated variable processing code), hence I think its better to wait for #1189 to be merged as a minimum. I think the best point to fix this is still 1-2 more refactor PRs away after #1189 though, would that be fine? @damithc |
Problem: if a page in a subsite uses nunjucks, the scripts will not work if that page is used in the outer site.
The text was updated successfully, but these errors were encountered: