%inherit file="/base.tmpl"/>
<%block name="synopsis">
function on${node.name}(\
${', '.join('%s: %s' % (arg.argname, formatter.format_type(arg.type, True)) for arg in formatter.get_in_parameters(node))}\
): ${formatter.format_out_parameters(node)} {
}
%block>
<%block name="details">
% if formatter.has_any_parameters(node):
% for arg in formatter.get_in_parameters(node):
-
${arg.argname}
${formatter.format(node, arg.doc)}
% endfor
% for arg in formatter.get_out_parameters(node):
-
${(arg.argname + ' (out)') if arg.direction == 'inout' else arg.argname}
${formatter.format(node, arg.doc)}
% endfor
% endif
%block>