From 2e02549b35abf528d92a9520bb3185f0ebbd85fe Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Tue, 28 May 2024 16:00:53 +0530 Subject: [PATCH] Use "webpack" instead of "manifest" for the more precise term --- hasjob/__init__.py | 7 +++++-- hasjob/templates/embedlayout.html.jinja2 | 2 +- hasjob/templates/layout.html.jinja2 | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/hasjob/__init__.py b/hasjob/__init__.py index c0434221..90cac3e7 100644 --- a/hasjob/__init__.py +++ b/hasjob/__init__.py @@ -25,8 +25,11 @@ lastuser = Lastuser() redis_store = FlaskRedis(decode_responses=True) rq = RQ() -manifest = WebpackManifest( - app, filepath='static/build/manifest.json', urlpath='/static/build/' +webpack = WebpackManifest( + app, + filepath='static/build/manifest.json', + urlpath='/static/build/', + jinja_global='webpack', ) # Second, setup assets diff --git a/hasjob/templates/embedlayout.html.jinja2 b/hasjob/templates/embedlayout.html.jinja2 index 077aec23..24e9cb49 100644 --- a/hasjob/templates/embedlayout.html.jinja2 +++ b/hasjob/templates/embedlayout.html.jinja2 @@ -2,7 +2,7 @@ {%- block layoutheaders %} - + {# diff --git a/hasjob/templates/layout.html.jinja2 b/hasjob/templates/layout.html.jinja2 index 244c32bc..14c7a129 100644 --- a/hasjob/templates/layout.html.jinja2 +++ b/hasjob/templates/layout.html.jinja2 @@ -38,7 +38,7 @@ - + {# @@ -282,9 +282,9 @@ {% block layoutscripts %} {%- if header_campaign %}{{ campaign_script() }}{% endif %} - - - + + +