Pete Bacon Darwin 46729c76a0 build(docs-infra): improve directive selector rendering (#25768)
If the documentation contains a `@selectors` tag then the content of that
is used to describe the selectors of a directive.

Otherwise the selector string is split and each selector is listed as
a list item in an unordered list.

PR Close #25768
2018-10-01 09:36:33 -07:00

15 lines
302 B
HTML

{%- if doc.selector %}
<section class="selector-list">
<h2>Selectors</h2>
{% if doc.selectors %}
{$ doc.selectors | marked $}
{% else %}
<ul>
{%- for selector in doc.selectorArray %}
<li><code>{$ selector $}</code></li>
{% endfor %}
</ul>
{% endif %}
</section>
{% endif %}