mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 23:08:07 -04:00
Move GOVUK Frontend templates from node_modules
`node_modules` isn't available in a live environment so the `.njk` templates we're now using from GOVUK Frontend need to go in the repo' code. Adds them in a new `app/templates/vendor` folder to match how we do that in `app/assets/stylesheets`.
This commit is contained in:
@@ -720,7 +720,7 @@ def init_jinja(application):
|
||||
repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
||||
template_folders = [
|
||||
os.path.join(repo_root, 'app/templates'),
|
||||
os.path.join(repo_root, 'node_modules/govuk-frontend'),
|
||||
os.path.join(repo_root, 'app/templates/vendor/govuk-frontend'),
|
||||
]
|
||||
jinja_loader = jinja2.FileSystemLoader(template_folders)
|
||||
application.jinja_loader = jinja_loader
|
||||
|
||||
Reference in New Issue
Block a user