Templates, Bootstrap Navbars, and Links
This commit is contained in:
@ -6,29 +6,33 @@
|
||||
<title>{{name | capitalize}}'s page</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello {{name | upper}}!!</h1> <!--This makes the whole thing capitalised-->
|
||||
<h1>Hello {{name | capitalize}}!!</h1> <!--This makes the first char capitalised-->
|
||||
<h1>Hello {{name | lower}}!!</h1>
|
||||
<h1>Hello {{name | title}}!!</h1>
|
||||
<p>{{ stuff }}</p>
|
||||
<p>{{ stuff | safe }}</p> <!--This will allow html codes to be loaded-->
|
||||
<p>{{ stuff | striptags }}</p> <!--This will remove html tags from the string-->
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% for item in liste %}
|
||||
{% if item == 3 %}
|
||||
<p>Thiiiiiiiiis is number THREEEEEEEEE!!!!</p>
|
||||
{% else %}
|
||||
<p style="font-size: 5ch; font-style: oblique; color: chocolate;">{{ item }}</p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% block content %}
|
||||
<h1>Hello {{name | upper}}!!</h1> <!--This makes the whole thing capitalised-->
|
||||
<h1>Hello {{name | capitalize}}!!</h1> <!--This makes the first char capitalised-->
|
||||
<h1>Hello {{name | lower}}!!</h1>
|
||||
<h1>Hello {{name | title}}!!</h1>
|
||||
<p>{{ stuff }}</p>
|
||||
<p>{{ stuff | safe }}</p> <!--This will allow html codes to be loaded-->
|
||||
<p>{{ stuff | striptags }}</p> <!--This will remove html tags from the string-->
|
||||
|
||||
<h1>Sahe thing with some math!</h1>
|
||||
{% for item in liste %}
|
||||
{% if item == 3 %}
|
||||
<p>Thiiiiiiiiis is number THREEEEEEEEE!!!!</p>
|
||||
{% else %}
|
||||
<p style="font-size: 5ch; font-style: oblique; color: chocolate;">{{ item }}</p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for item in liste %}
|
||||
<p style="font-size: 5ch; font-style: oblique; color: chocolate;">{{ item **25 }}</p>
|
||||
{% endfor %}
|
||||
<h1>Sahe thing with some math!</h1>
|
||||
|
||||
<p>The last element of my list is: {{liste[4]}}</p>
|
||||
{% for item in liste %}
|
||||
<p style="font-size: 5ch; font-style: oblique; color: chocolate;">{{ item **25 }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<p>The last element of my list is: {{liste[4]}}</p>
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user