3.5.3 Multiple Argument Macros

##
3.5.3 Multiple Argument Macros

Multiple argument macros are effectively the same as single argument macros that accept additional named arguments.

The following example shows a macro that defines multiple arguments and some template to expand the macro.

    <al-macro name="multi-arg">
    arg1 is "<al-usearg name="arg1">" and
    arg2 is "<al-usearg name="arg2">" and
    the default argument is "<al-usearg>".
    </al-macro>

    <al-expand name="multi-arg">
    This is <al-setarg name="arg2">arg2 content</al-setarg>
    the <al-setarg name="arg1">arg1 content</al-setarg>
    default argument</al-expand>

When the above template is executed the following output is produced.

    arg1 is "arg1 content" and
    arg2 is "arg2 content" and
    the default argument is "This is the default argument".