Mixing include and extends does not work
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the issue with main.jinja.yml, shared.jinja.yml, part1.jinja.yml, and part2.jinja.yml using Jinjava 2.7.1, then trace how the include and extends directives are evaluated together. Done means evaluating main.jinja.yml retains both PART1 and PART2 in the output.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 785
- Forks
- 184
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HubSpot/jinjava
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Jinjava 3.0 Open
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
inu-appcenter/memorIN-backend#288 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
frontend maui-pilot pilot-ask question
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
area/plugin
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
kestra-io/plugin-kestra#190 ·