ui.util.callCall an inline element as a block element.
This function allows passing complex content into an element using a Jinja2
caller. For example, following simple macro does not contain caller():
Such components cannot be called in form {%- raw -%}{% call ui.button() %}{%- endraw %} and
rendering button with nested HTML turns into a verbose task. But using ui.util.call,
the button can be used with call
The content of the call block will be passed as a first argument into
the target macro. Any other positional and named arguments of the
ui.util.call will be redirected into the button macro as
well.
Unless component documentation says otherwise, it's safe to assume that
component will cause an exception when used with call directly. Always
wrap component calls into ui.util.call.