-
Notifications
You must be signed in to change notification settings - Fork 11
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
Can you bring back the documentation on extends and includes? #47
Comments
That documentation was for the code before refactoring. https://jinja.palletsprojects.com/en/3.0.x/templates/#include |
ok, thanks! would it be possible to mention in the main documentation that this is how extends and includes works now? It was a little hard to figure out |
Specific Adding on to this: the docs on compatibility explicitly say that with Jekyll,
implying that it is supported in other modes. Is it? (I've also looked into doing what the Jekyll recommendation states, which is using Jinja2's The following throws a
What is the expected behavior? Should |
Thanks for pointing this out. Passing variables via However, you are correct that {% include 'ValueSet/SystemReference' with context %} See https://jinja.palletsprojects.com/en/3.0.x/templates/#include If you want {% assign code = Identifier.root %}
{% include 'ValueSet/SystemReference' %} But the best practice is that, if you want flexibility in your sub-template, you should use See this answer: https://stackoverflow.com/a/9405157/5088165 See also tests that I added regarding this issue: |
I found some deleted documentation on extends and includes in the git history - https://github.com/pwwang/liquidpy/blob/bbe9cf672eca96e3d44715a16ae31dab377dab19/docs/extends_include.md
It was helpful! Could it be undeleted, please?
The text was updated successfully, but these errors were encountered: