jinja if else
{% if something_random == 15 %}
<h1>Hello, this equals 15</h1>
{% else %}
<h1>This does not equal 15</h1>
{% end if %}
jinja if else
{% if something_random == 15 %}
<h1>Hello, this equals 15</h1>
{% else %}
<h1>This does not equal 15</h1>
{% end if %}
Jinja if with true value
{% if bCat2 == true %}
<div>True</div>
{% else %}
<div>False</div>
{% endif %}
jinja if else
{% if something_random == 15 %}
<h1>Hello, this equals 15</h1>
{% end if %}
jinja inheritance
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<link rel="stylesheet" href="style.css" />
<title>{% block title %}{% endblock %} - My Webpage</title>
{% endblock %}
</head>
<body>
<div id="content">{% block content %}{% endblock %}</div>
<div id="footer">
{% block footer %}
© Copyright 2008 by <a href="http://domain.invalid/">you</a>.
{% endblock %}
</div>
</body>
</html>
jinja if
{% if 'priority' in data %}
<p>Priority: {{ data['priority'] }}</p>
{% endif %}
jinja if else
{% if "error" in RepoOutput[RepoName.index(repo)] %}
<td id="error"> {{ RepoOutput[RepoName.index(repo)] }} </td>
{% elif "Already" in RepoOutput[RepoName.index(repo) %}
<td id="good"> {{ RepoOutput[RepoName.index(repo)] }} </td>
{% else %}
<td id="error"> {{ RepoOutput[RepoName.index(repo)] }} </td>
{% endif %}
</tr>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us