summaryrefslogtreecommitdiff
path: root/giscanner/mallard-Python-function.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/mallard-Python-function.tmpl')
-rw-r--r--giscanner/mallard-Python-function.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/giscanner/mallard-Python-function.tmpl b/giscanner/mallard-Python-function.tmpl
index 3ae28f33..b3c74a43 100644
--- a/giscanner/mallard-Python-function.tmpl
+++ b/giscanner/mallard-Python-function.tmpl
@@ -68,4 +68,21 @@ ${arg.argname}\
)
</code></synopsis>
${formatter.format(node.doc)}
+
+% if node.parameters:
+<table>
+% for arg, ix in zip(node.parameters, range(len(node.parameters))):
+<tr>
+<td><p>${arg.argname} :</p></td>
+<td>${formatter.format(arg.doc)}</td>
+</tr>
+% endfor
+% if node.retval:
+<tr>
+<td><p>Returns :</p></td>
+<td>${formatter.format(node.retval.doc)}</td>
+</tr>
+% endif
+</table>
+% endif
</page>