[ACCEPTED]-I don't understand Jinja2 Call Blocks-jinja2

Accepted answer
Score: 14

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.


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.

More Related questions