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

WIP: {% include %} and {% load_widgets %} #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

schinckel
Copy link
Collaborator

Currently, if you {% include %} a template into another template, then any widget sets that were loaded in the outer template are not available (even when using _soft) inside the inner template, without using a seperate {% load_widgets %}.

schinckel added 2 commits May 22, 2017 16:51
Didn't need to patch the function and count: can infer from the failure to render
that the widgets are not loaded.
@schinckel
Copy link
Collaborator Author

I'm not sure this is something that will be compatible with the way sniplates caches the widgets in the render_context, which is not used at all in an {% include %}.

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

Successfully merging this pull request may close these issues.

1 participant