From 2fa86917291c00515851b0a868e030dbf6f328eb Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Thu, 7 Jun 2018 14:06:54 -0500 Subject: [PATCH] Added body_attr block in base.html Made it easier to add attribute in <body> tag --- app/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/base.html b/app/templates/base.html index 7ba542e..7bfd361 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -10,7 +10,7 @@ <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.ico') }}"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> </head> - <body> + <body {% block body_attr %}{% endblock %}> {% include "navbar.html" %} <div class="wrapper"> {% block body %} -- GitLab