mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Merged BaseIncludeNode, ConstantIncludeNode and Include node. This avoids raising TemplateDoesNotExist at parsing time, allows recursion when passing a literal template name, and should make TEMPLATE_DEBUG behavior consistant. Thanks loic84 for help with the tests. Fixed #3544, fixed #12064, fixed #16147
		
			
				
	
	
		
			8 lines
		
	
	
		
			204 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			204 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| Recursion!
 | |
| {% for comment in comments %}
 | |
|     {{ comment.comment }}
 | |
|     {% if comment.children %}
 | |
|         {% include "recursive_include.html" with comments=comment.children %}
 | |
|     {% endif %}
 | |
| {% endfor %}
 |