mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Add mutli-class detail
This commit is contained in:
parent
e019c6448c
commit
3c282999e8
@ -98,7 +98,12 @@ variable. Only equality can be tested. These blocks must start with
|
|||||||
block can also be specified using the directive `{% else %}`. These directives
|
block can also be specified using the directive `{% else %}`. These directives
|
||||||
must appear on lines by themselves. They may not appear on the same line. The
|
must appear on lines by themselves. They may not appear on the same line. The
|
||||||
"if" directive only supports testing a single variable, and there is no "elif"
|
"if" directive only supports testing a single variable, and there is no "elif"
|
||||||
directive as there is in Jinja. Here is an example.
|
directive as there is in Jinja.
|
||||||
|
<br><br>
|
||||||
|
If multiple classes are defined, `yadm.class=="someclass"` will be true if *any*
|
||||||
|
of the defined classes are "someclass".
|
||||||
|
<br><br>
|
||||||
|
Here is an example.
|
||||||
|
|
||||||
```jinja
|
```jinja
|
||||||
{% if yadm.os == "Darwin" %}
|
{% if yadm.os == "Darwin" %}
|
||||||
|
Loading…
Reference in New Issue
Block a user