Skip to content
Snippets Groups Projects
Commit f2b425d7 authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update ExampleApp to demonstrate static files

parent f16151fc
No related branches found
No related tags found
1 merge request!10Resolve "Example App schreiben"
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
from flask import render_template from flask import render_template
def home(): def home():
return render_template('home.html') return render_template('extra_home.html')
\ No newline at end of file \ No newline at end of file
body {
width:100%;
height:300px;
background:#fff;
}
#global_app_menu {
background:#ccc;
}
#content {
background:#eee;
}
#header {
background:#aaa;
}
#footer {
background:#ccc;
}
\ No newline at end of file
{% extends "base-struct.html" %}
{% block title %}Index{% endblock %}
{% block head %} {{ super() }}
<link rel="stylesheet" href="/ExampleApp.Extra/static/extra-style.css" />
{% endblock %}
{% block content %}
<h1>Extra</h1>
<p>samsHub Startseite: {{ app_lang['hello_message'] }}</p>
{% endblock %}
{% block header %}samsHUB -{% endblock %}
\ No newline at end of file
...@@ -8,7 +8,7 @@ body { ...@@ -8,7 +8,7 @@ body {
} }
#content { #content {
background:#cff; background:#fcf;
} }
#header { #header {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment