Remove whitespaces before sending

This commit is contained in:
Sweetbread authored and Sweetbread committed 2026-01-13 16:10:47 +03:00
1 parent c0dc079a71
commit e776f09b0f
3 files changed
+10 -5

No files matched your search

+5 -4
View File
@@ -1,5 +1,6 @@
from os import system as console
from configparser import ConfigParser
from htmlmin import minify
from flask import (
Flask,
g,
@@ -63,16 +64,16 @@ if app.debug:
@app.route("/")
def index():
return render_template('index.html')
return minify(render_template('index.html'), remove_empty_space=True)
@app.route("/host")
def host():
return render_template('host.html')
return minify(render_template('host.html'), remove_empty_space=True)
@app.route("/us")
def us():
return render_template('us.html')
return minify(render_template('us.html'), remove_empty_space=True)
@app.route("/risdeveau")
def risdeveau():
return render_template('personal/risdeveau.html')
return minify(render_template('personal/risdeveau.html'), remove_empty_space=True)