In Django there is an html if tag that you can use:
{% if this %} <h1>Hi</h1> {% endif %}
but is there an else tag that corresponds to the if tag? Example:
{% if this %} <h1>Hi</h1> {% else %} <h1>Not Hi</h1> {% endif %}
Aucun commentaire:
Enregistrer un commentaire