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 .. code-block:: jinja
{% if kenny.sick %} {% if product.stock > 10 %}
Kenny is sick. Available
{% elseif kenny.dead %} {% elseif product.stock > 0 %}
You killed Kenny! You bastard!!! Only {{ product.stock }} left!
{% else %} {% else %}
Kenny looks okay --- so far Sold-out!
{% endif %} {% endif %}
.. note:: .. note::