From 4e99e6ffbe7cdc034f665cd6b63e878844b4279a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 26 Mar 2022 15:17:07 +0000 Subject: [PATCH] Tera templates: Adjust syntax by moving imports to top We are going to switch to a newer Tera which wants these at the top. Empirically, we get a syntax error without this change. The requirementr doesn't seem to be documented, though. Signed-off-by: Ian Jackson --- templates/landscape.tera | 3 +-- templates/session.tera | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/landscape.tera b/templates/landscape.tera index 16d8d762..eeaad5a4 100644 --- a/templates/landscape.tera +++ b/templates/landscape.tera @@ -1,8 +1,7 @@ -{# -*- HTML -*- -#} +{% import "macros" as m %}{# -*- HTML -*- -#} -{% import "macros" as m %}{# -*- HTML -*- -#} {{ m::header() }}