pmd/docs/_includes/custom/xpath_fun_doc.html

71 lines
1.6 KiB
HTML
Raw Normal View History

2019-03-06 01:29:53 +01:00
{% for lang in site.data.xpath_funs.langs %}
### {{ lang.name }}
{{ lang.name }} functions are in the namespace `{{ lang.ns }}`.
2019-03-06 02:22:36 +01:00
<div class="table-responsive">
<table>
<thead>
<tr>
<th>Function name</th>
<th>Parameters</th>
<th>Description</th>
<th>Notes</th>
</tr>
</thead>
{% for fun in lang.funs %}
<tr>
<td>{{ fun.name }}</td>
<td>
{% if fun.parameters.size == 0 %}
None
{% elsif fun.params_are_same_as %}
(Same as for `{{ fun.params_are_same_as }}`)
{% elsif fun.parameters.size == 1 %}
2019-03-06 04:14:34 +01:00
1: {{ fun.parameters[0].description }}
2019-03-06 02:22:36 +01:00
{% else %}
<ul>
{% for i in 0..fun.parameters.size %}
{{ assign param = fun.parameters[i] }}
2019-03-06 04:14:34 +01:00
<li>{{ i + 1 }} : {{ param.description }}</li>
2019-03-06 02:22:36 +01:00
{% endfor %}
</ul>
{% endif %}
</td>
<td>{{ fun.description }}</td>
<td>
{% if fun.notes_are_same_as %}
(Same as for `{{ fun.notes_are_same_as }}`)
{% else %}
{{ fun.notes }}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
{% unless lang.examples.size == 0 %}
#### Examples
{% for example in lang.examples %}
* `{{ example.code }}`<br/>&nbsp;&nbsp;&nbsp;&nbsp;{{example.outcome }}
{% endfor %}
2019-03-06 01:29:53 +01:00
{% endunless %}
{% endfor %}