Remove whitespaces before sending
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from os import system as console
|
from os import system as console
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
from htmlmin import minify
|
||||||
from flask import (
|
from flask import (
|
||||||
Flask,
|
Flask,
|
||||||
g,
|
g,
|
||||||
@@ -63,16 +64,16 @@ if app.debug:
|
|||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return minify(render_template('index.html'), remove_empty_space=True)
|
||||||
|
|
||||||
@app.route("/host")
|
@app.route("/host")
|
||||||
def host():
|
def host():
|
||||||
return render_template('host.html')
|
return minify(render_template('host.html'), remove_empty_space=True)
|
||||||
|
|
||||||
@app.route("/us")
|
@app.route("/us")
|
||||||
def us():
|
def us():
|
||||||
return render_template('us.html')
|
return minify(render_template('us.html'), remove_empty_space=True)
|
||||||
|
|
||||||
@app.route("/risdeveau")
|
@app.route("/risdeveau")
|
||||||
def risdeveau():
|
def risdeveau():
|
||||||
return render_template('personal/risdeveau.html')
|
return minify(render_template('personal/risdeveau.html'), remove_empty_space=True)
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
Flask==3.1.1
|
Flask==3.1.1
|
||||||
gunicorn
|
gunicorn
|
||||||
|
htmlmin2
|
||||||
|
|||||||
@@ -95,6 +95,10 @@ header {
|
|||||||
background-color: $mantle;
|
background-color: $mantle;
|
||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
font-size: larger;
|
font-size: larger;
|
||||||
|
|
||||||
|
.header-links * + * {
|
||||||
|
padding-left: 1ch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
|||||||
Reference in New Issue
Block a user