You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
436 B
14 lines
436 B
<!-- This view demonstrates how to use the conditional branches with |
|
djula. If the vaule 'stock' is greater than 0, it will print the |
|
value (next to 'Stock:'). If the stock is 0 (or less), the page |
|
will say 'This is no stock', instead. |
|
|
|
The variable/value, 'stock' is passed to the view from the controller |
|
in /src/web.lisp. |
|
--> |
|
|
|
{% if stock-zerop %} |
|
Stock: {{stock}} |
|
{% else %} |
|
This is no stock. |
|
{% endif %}
|
|
|