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

Extends inside include #909

Closed
wants to merge 4 commits into from

Conversation

susonwaiba
Copy link

@susonwaiba susonwaiba commented May 2, 2024

For issues:

Changes:

  • Exposed current context
  • if template.parents is not empty
    • Check and throw error, if include template has recursive parent template (to prevent loop)
    • Using Processor
  • else
    • render_body (as it was)
  • Removed error test
  • Removed Note from docs

Here, tera.get_template(tpl_name) seems to already parse parents if any exists.
Using Processor might create separate context ??
Performance ??

@Keats
Copy link
Owner

Keats commented May 3, 2024

I don't really want to add that feature though.

@susonwaiba susonwaiba closed this May 4, 2024
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.

None yet

2 participants