How can I reuse a block multiple times?

前端 未结 1 1604
难免孤独
难免孤独 2021-02-01 12:10

How can I render a block multiple times within a view in a twig template? Currently I do have a block, let\'s call it something defined in an included (via re

1条回答
  •  时光说笑
    2021-02-01 12:50

    The notation you're showing us is for defining and rendering a block. Rendering only is done this way:

    {{ block('blockName') }}
    

    0 讨论(0)
提交回复
热议问题