From: Ian Jackson Date: Sat, 26 Mar 2022 15:17:07 +0000 (+0000) Subject: Tera templates: Adjust syntax by moving imports to top X-Git-Tag: otter-1.0.0~128 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4e99e6ffbe7cdc034f665cd6b63e878844b4279a;p=otter.git 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 --- 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() }}