1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #26402 -- Added relative path support in include/extends template tags.

This commit is contained in:
Vitaly Bogomolov
2016-03-24 11:39:37 +03:00
committed by Tim Graham
parent ad403ffa45
commit aec4f97555
20 changed files with 206 additions and 0 deletions

View File

@@ -0,0 +1 @@
{% include "./../../three.html" %}

View File

@@ -0,0 +1 @@
{% include "./include_content.html" %}

View File

@@ -0,0 +1 @@
dir2 include

View File

@@ -0,0 +1,3 @@
{% extends "./../../one.html" %}
{% block content %}{{ block.super }} dir2 one{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "./dir2/../looped.html" %}
{% block content %}{{ block.super }} dir1 three{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "./../one.html" %}
{% block content %}{{ block.super }} dir1 one{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends './../one.html' %}
{% block content %}{{ block.super }} dir1 one{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends '../one.html' %}
{% block content %}{{ block.super }} dir1 one{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "../one.html" %}
{% block content %}{{ block.super }} dir1 one{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "./dir2/../../three.html" %}
{% block content %}{{ block.super }} dir1 three{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "./dir2/one.html" %}
{% block content %}{{ block.super }} dir1 two{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "./../two.html" %}
{% block content %}{{ block.super }} one{% endblock %}

View File

@@ -0,0 +1 @@
{% include "./../three.html" %}

View File

@@ -0,0 +1,3 @@
{% extends "./two.html" %}
{% block content %}{{ block.super }} one{% endblock %}

View File

@@ -0,0 +1 @@
{% block content %}three{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "./three.html" %}
{% block content %}{{ block.super }} two{% endblock %}