This attribute acts as a
set tag and allows to ‘capture’ chunks of text into a variable:
<div id="pagination" t:capture="foo"> ... any content .. </div>
All contents inside “pagination” div will be captured and saved inside a variable named foo.
For more information about the
set tag, please refer to Twig official documentation.