chiark / gitweb /
Tera templates: Adjust syntax by moving imports to top
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 26 Mar 2022 15:17:07 +0000 (15:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Mar 2022 23:50:26 +0000 (00:50 +0100)
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 <ijackson@chiark.greenend.org.uk>
templates/landscape.tera
templates/session.tera

index 16d8d7623e34805f7b85f9edb409ffb2f4f54aaa..eeaad5a4588ced1c9cc0e8e4a07b9c9506bded4e 100644 (file)
@@ -1,8 +1,7 @@
-{# -*- HTML -*- -#}
+{% import "macros" as m %}{# -*- HTML -*- -#}
 <!-- Copyright 2020u Ian Jackson
      SPDX-License-Identifier: AGPL-3.0-or-later
      There is NO WARRANTY. -->
-{% import "macros" as m %}{# -*- HTML -*- -#}
 {{ m::header() }}
 <style>
   div[class=uos] {
index 78e7e7d2fc15e4fd556449b3729c18cb485ef771..22c414f01ae090ccc20758d3215478f5c58ee55e 100644 (file)
@@ -1,8 +1,7 @@
-{# -*- HTML -*- -#}
+{% import "macros" as m %}{# -*- HTML -*- -#}
 <!-- Copyright 2020u Ian Jackson
      SPDX-License-Identifier: AGPL-3.0-or-later
      There is NO WARRANTY. -->
-{% import "macros" as m %}{# -*- HTML -*- -#}
 {{ m::header() }}
 <style>
   body {