aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/match-custom-enum.html
blob: bec38b90dff64f4730c4bf881d7b3f85fbd2eb0d (plain) (blame)
1
2
3
4
5
6
7
8
{% match color %}
{% when Color::Rgb with {r, g: g, b: blue} %}
Colorful: #{{ "{:02X}"|format(r) }}{{ "{:02X}"|format(g) }}{{ "{:02X}"|format(blue) }}
{% when Color::GrayScale with (val) %}
Gray: #{{ "{:02X}"|format(val) }}{{ "{:02X}"|format(val) }}{{ "{:02X}"|format(val) }}
{% else %}
CMYK not supported
{% endmatch %}