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