Skip to content
Snippets Groups Projects
Commit 3db2624d authored by Julian Rother's avatar Julian Rother
Browse files

Moved active_page definition into templates

parent 30a210b6
No related branches found
No related tags found
No related merge requests found
......@@ -46,11 +46,11 @@ def index():
@app.route('/videos')
def videos():
return render_template('videos.html', active_page='videos')
return render_template('videos.html')
@app.route('/faq')
def faq():
return render_template('faq.html', active_page='faq')
return render_template('faq.html')
if __name__ == '__main__':
app.debug = True
......
......@@ -16,6 +16,7 @@
</head>
<body>
{%include "header.html" %}
{% set active_page = active_page %}
{% block content %}
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
......
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% set active_page = "faq" %}
{% block content %}
<div class="container">
<br />
......
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% set active_page = "index" %}
{% block content %}
<div class="container-fluid">
<div class="row">
......
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% set active_page = "videos" %}
{% block content %}
<div class="container-fluid">
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment