[tutorial v1.1_171] Calculate a random color
This commit is contained in:
parent
d3c75fdd0e
commit
ea159ce079
1 changed files with 7 additions and 0 deletions
|
|
@ -13,4 +13,11 @@ proxies:
|
||||||
color:
|
color:
|
||||||
description: Color
|
description: Color
|
||||||
regexp: ^#(?:[0-9a-f]{3}){1,2}$
|
regexp: ^#(?:[0-9a-f]{3}){1,2}$
|
||||||
|
default:
|
||||||
|
jinja: >-
|
||||||
|
#
|
||||||
|
{%- for i in range(6) -%}
|
||||||
|
{{- '0123456789abcdef' | random -}}
|
||||||
|
{%- endfor -%}
|
||||||
|
description: random color value
|
||||||
...
|
...
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue