1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Strip unnecessary whitespace

This commit is contained in:
2018-03-30 09:40:53 +02:00
parent 8148a79d28
commit 52a01794f6

View File

@@ -166,6 +166,10 @@ app = Flask(__name__)
app.config.from_object(__name__) app.config.from_object(__name__)
database = SqliteDatabase(os.path.join(APP_ROOT, 'bookmarks.db')) database = SqliteDatabase(os.path.join(APP_ROOT, 'bookmarks.db'))
# Strip unnecessary whitespace due to jinja2 codeblocks
app.jinja_env.trim_blocks = True
app.jinja_env.lstrip_blocks = True
# set custom url for the app, for example '/bookmarks' # set custom url for the app, for example '/bookmarks'
try: try:
app.config['APPLICATION_ROOT'] = settings.APPLICATION_ROOT app.config['APPLICATION_ROOT'] = settings.APPLICATION_ROOT