Improved the code of an example

This commit is contained in:
Javier Eguiluz
2018-09-27 16:26:19 +02:00
committed by GitHub
parent 1e99fb4eb3
commit f07a876de6
+5 -5
View File
@@ -50,12 +50,12 @@ use more complex ``expressions`` there too:
.. code-block:: jinja
{% if kenny.sick %}
Kenny is sick.
{% elseif kenny.dead %}
You killed Kenny! You bastard!!!
{% if product.stock > 10 %}
Available
{% elseif product.stock > 0 %}
Only {{ product.stock }} left!
{% else %}
Kenny looks okay --- so far
Sold-out!
{% endif %}
.. note::