Sha256: 1043d1090376872a654ec4525a525f77f121f0f86b6e865577c0dc4cf16f1202
Contents?: true
Size: 1.52 KB
Versions: 8
Compression:
Stored size: 1.52 KB
Contents
{% macro typeList(types) -%} {% for typeName in types %}<a href="" class="{$ typeName | typeClass $}">{$ typeName | escape $}</a>{% endfor %} {%- endmacro -%} {%- macro paramTable(params) %} <table class="table"> <thead> <tr> <th>Param</th> <th>Type</th> <th>Details</th> </tr> </thead> <tbody> {% for param in params %} <tr> <td> {$ param.name $} {% if param.alias %}| {$ param.alias $}{% endif %} {% if param.optional %}<div><em>(optional)</em></div>{% endif %} </td> <td> {$ typeList(param.typeList) $} </td> <td> {$ param.description | marked $} {% if param.defaultValue %}<p><em>(default: {$ param.defaultValue $})</em></p>{% endif %} </td> </tr> {% endfor %} </tbody> </table> {% endmacro -%} {%- macro directiveParam(name, type, join, sep) %} {%- if type.optional %}[{% endif -%} {$ name | dashCase $}{$ join $}{$ type.description $}{$ sep $} {%- if type.optional %}]{% endif -%} {% endmacro -%} {%- macro functionSyntax(fn) %} {%- set sep = joiner(', ') -%} {% marked -%} `{$ fn.name $}({%- for param in fn.params %}{$ sep() $} {%- if param.type.optional %}[{% endif -%} {$ param.name $} {%- if param.type.optional %}]{% endif -%} {% endfor %});` {%- endmarked %} {% endmacro -%} {%- macro typeInfo(fn) -%} <table class="variables-matrix return-arguments"> <tr> <td>{$ typeList(fn.typeList) $}</td> <td>{$ fn.description | marked $}</td> </tr> </table> {%- endmacro -%}
Version data entries
8 entries across 8 versions & 1 rubygems