api-templates: separate out selectors into a list

This commit is contained in:
Peter Bacon Darwin 2015-11-03 14:40:42 +00:00
parent 8ec5b2bb83
commit 62adb91544
1 changed files with 9 additions and 3 deletions

View File

@ -4,11 +4,14 @@
{% block additional %}
.l-main-section
h2 Selector
h2 Selectors
.l-sub-section
{% for selector in doc.directiveOptions.selector.split(',') %}
h3.selector
code {$ doc.directiveOptions.selector $}
code {$ selector $}
{% endfor %}
{% if doc.inputs.length %}
.l-main-section
h2 Inputs
.l-sub-section
@ -19,7 +22,9 @@
:markdown
{$ property.memberDoc.description | indentForMarkdown(2) | trimBlankLines $}
{% endfor %}
{% endif %}
{% if doc.ouputs.length %}
.l-main-section
h2 Outputs
.l-sub-section
@ -29,5 +34,6 @@
code {$ property.memberDoc.classDoc.name $}.{$ property.propertyName $}
:markdown
{$ event.memberDoc.description | indentForMarkdown(2) | trimBlankLines $}
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %}