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