{% macro base(number) -%} {% if state.bases[number] %}/static/img/base_filled.png{% else %}/static/img/base_empty.png{% endif %} {%- endmacro %} {% macro out(number) -%} {% if number <= state.outs %}/static/img/out_out.png{% else %}/static/img/out_in.png{% endif %} {%- endmacro %}