The Twital instruction for Twig macro tag is t:macro node.

To declare a macro inside Twital, the syntax is:

<t:macro name="input" args="value, type, size">
    <input type="{{ type|default('text') }}" name="{{ name }}" value="{{ value|e }}" size="{{ size|default(20) }}" />

To use a macro inside your Twital template, take a look at the :doc:import<../tags/import> attribute.


For more information about the macro tag, please refer to Twig official documentation.