{# Copyright (c) 2015 Chintalagiri Shashank Released under the MIT license #} {% macro render_configuration(prototype) -%} {% if prototype.configs.configuration_grouplist(prototype.ident) %}
Groups
{% for group in prototype.configs.configuration_grouplist(prototype.ident) %}
{{ group }} {{ prototype.configs.get_group_desc(group) }}
{% endfor %}
{% endif %} {% if prototype.configs.configuration_motiflist(prototype.ident) %}
Motifs
{% for motif in prototype.bom.motifs %}
{{ motif.refdes }}
{{ motif.desc }}
{% for listing in motif.listing %}
{{ listing.0 }} {{ listing.1 }}
{% endfor %}
{% endfor %}
{% endif %} {% if prototype.configs.configuration_genlist(prototype.ident) %}
Generators
{% for gen, value in prototype.configs.configuration_genlist(prototype.ident).iteritems() %}
{{ gen }} {{ value }}
{% endfor %}
{% endif %} {% if prototype.configs.configuration_sjlist(prototype.ident) %}
SJs
{% endif %} {% endmacro -%}