{%- macro showBOM(content) -%}
 {% if content['BOM'] %}
     <aside>
         <h3>BOM</h3>
             <ul>
                 {% for thing in content['BOM'] %}
                     <li>
                         {% if thing['type'] %}
                             {% if thing['label'] %}
                                {{ thing['label'] }}
                            {% else %}
                             {{ thing['count'] }}
                             {{ thing['value'] }}
                             {{ thing['type'] }}
                         {% endif %}

                         {% if thing['alternative'] %}
                            <i>alternative: {{thing['alternative']}}</i>
                            {% endif %}

                     {% else %}
                         {{ thing }}
                     {% endif %}
                 </li>
             {% endfor %}
         </ul>
     </aside>
 {% endif %}

 {% if content['buildNotes'] %}
     <aside>
         <h3>Build notes</h3>
         <ul>
             {% for thing in content['buildNotes'] %}
                 <li>
                    {{ thing }}
                </li>
            {% endfor %}
        </ul>
    </aside>
{% endif %}

{%- endmacro -%}
