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

Mixing include and extends does not work #1134

Open
klr8 opened this issue Dec 8, 2023 · 0 comments
Open

Mixing include and extends does not work #1134

klr8 opened this issue Dec 8, 2023 · 0 comments

Comments

@klr8
Copy link

klr8 commented Dec 8, 2023

Imagine the following template setup:
main.jinja.yml:

{% include 'part1.jinja.yml' %}
{% extends "shared.jinja.yml" %}

shared.jinja.yml:

---
{% include 'part2.jinja.yml' %}

part1.jinja.yml:

part: PART1

part2.jinja.yml:

part: PART2

Evaluating main.jinja.yml will result in an output file that looks like this:

---
part: PART2

Notice that PART1, which is included by the main template, is missing.

Jinjava version 2.7.1.

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