{% from 'snippets/BOM.jinja'  import showBOM with context %}
    

{%- macro showCircuit(content) -%}
    {% if content['pcb'] %}
        <article template-type="circuit">
            <header class="sm">
                <h2>Paper circuit: {{content['title']}}</h2>
            </header>

            <section class="media--pcb">
                <img src="{{ content['pcb']}}"  />
            </section>

            <aside>
                {{ showBOM(content) }}

                <h3>Your notes</h3>
                <p>....</p>
            </aside>
        </article>
{% endif %}
{%- endmacro -%}
