Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask if statement

{% extends "base.html" %}
{% block content %}
    {% if condition %}
        <div>blah blah blah blah</div>
    {% else %}
        {{ super() }}
    {% endif %}
{% endblock content %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #statement
ADD COMMENT
Topic
Name
7+3 =