From b9e90ba56cd4c74415d87c9a5e379c971285a124 Mon Sep 17 00:00:00 2001 From: nyx Date: Mon, 10 Mar 2025 00:52:09 -0500 Subject: [PATCH] Work on making more stuff use templates --- app/templates/imports.j2 | 3 +++ app/templates/index.j2 | 3 ++- app/templates/login.j2 | 2 ++ app/templates/register.j2 | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/templates/imports.j2 diff --git a/app/templates/imports.j2 b/app/templates/imports.j2 new file mode 100644 index 0000000..3d5b15e --- /dev/null +++ b/app/templates/imports.j2 @@ -0,0 +1,3 @@ +{% macro imports_main() %} + +{% endmacro %} \ No newline at end of file diff --git a/app/templates/index.j2 b/app/templates/index.j2 index 24a6d65..ec2eded 100644 --- a/app/templates/index.j2 +++ b/app/templates/index.j2 @@ -1,8 +1,9 @@ {% from 'header.j2' import header_home %} +{% from 'imports.j2' import imports_main %} {{ instanceBranding }} - Home - + {{ imports_main() }} {{ header_home() }} diff --git a/app/templates/login.j2 b/app/templates/login.j2 index 09beafc..d2bda55 100644 --- a/app/templates/login.j2 +++ b/app/templates/login.j2 @@ -1,7 +1,9 @@ {% from 'header.j2' import header_login %} +{% from 'imports.j2' import imports_main %} {{ instanceBranding }} - Login + {{ imports_main() }} {{ header_login() }} diff --git a/app/templates/register.j2 b/app/templates/register.j2 index 9c4a259..d58dc48 100644 --- a/app/templates/register.j2 +++ b/app/templates/register.j2 @@ -1,7 +1,9 @@ {% from 'header.j2' import header_login %} +{% from 'imports.j2' import imports_main %} {{ instanceBranding }} - Register + {{ imports_main() }} {{ header_login() }}