{# Copyright (c) 2015 Chintalagiri Shashank Released under the MIT license #} {% macro render_bom(refbom) -%}
{% for row in refbom.lines %} {% endfor %}
Ident Quantity Refdes
{{ row.ident }} {{ row.quantity_str }} {% for refdes in row.refdeslist %}{{ refdes }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endmacro -%} {% macro render_cobom(cobom) -%}
{% for row in cobom.lines %} {% endfor %}
Ident Quantity
{{ row.ident }} {{ row.quantity_str }}
{% endmacro -%} {% macro render_inclusion(inclusion) -%}
{% for product, qty in inclusion %} {% endfor %}
Product Description Status Quantity
{{ product.ident }} {{ product.desc }} {{ product.status }} {{ qty }}
{% endmacro -%}