How django render function handles for loop ,how parse a "if" or "for"
{% for name, age in data.items %}
Name: {{name}}, Age: {{age}} <br>
{% endfor %}
for loop in template,when render it,how does django know it is a for loop and show datas on html page.
I know how to use "for loop" in template, and render template&content in view function,but I dont understand how django interprets it. How does the render function handle the for loop in html?I meand how implement it detailedly?
I just read souce code from render function jump to this point:\python3.8\Lib\string.py
for the self.pattern.sufunction just:
@overload
def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ...
so how does django implement it ?
