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"
from flask import render_template
def home():
return render_template('home.html')
\ No newline at end of file
return render_template('extra_home.html')
\ 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 {
}
#content {
background:#cff;
background:#fcf;
}
#header {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment