[ACCEPTED]-I don't understand Jinja2 Call Blocks-jinja2
Accepted answer
This is the output:
<div class="dialog">
<h2>Hello World</h2>
<div class="contents">
This is a simple dialog rendered by using a macro and
a call block.
</div>
</div>
So when we call render_dialog 2 we pass 'Hello World' as title, when it 1 reach caller()
it passes the contents of the call
block.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.