aboutsummaryrefslogblamecommitdiffstats
path: root/testing/templates/match-custom-enum.html
blob: cb45b8f1fe96d14e887334d08f284bf6d54436fa (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                     
{% match color %}
{% when Color::Rgb with (r, g, b) %}
Colorful: #{{ "{:02X}"|format(r) }}{{ "{:02X}"|format(g) }}{{ "{:02X}"|format(b) }}
{% when Color::GrayScale with (val) %}
Gray: #{{ "{:02X}"|format(val) }}{{ "{:02X}"|format(val) }}{{ "{:02X}"|format(val) }}
{% else %}
CMYK not supported
{% endmatch %}