BUGFIX: order of locals and globasl in template parsing

This commit is contained in:
Simon Martens
2024-12-03 21:43:26 +01:00
parent 5f6886a144
commit 591b637652
11 changed files with 14 additions and 17 deletions

View File

@@ -0,0 +1 @@
this is the menu

View File

@@ -13,14 +13,6 @@
<link rel="icon" href="/assets/logo/favicon.png" />
{{ end }}
{{ if (and .name .title) }}
<title>{{ .name }} - {{ .title }}</title>
{{ else if .name }}
<title>{{ .name }}</title>
{{ else if .title }}
<title>{{ .title }}</title>
{{ end }}
<link rel="stylesheet" type="text/css" href="/assets/style.css" />
<link href="/assets/css/remixicon.css" rel="stylesheet" />
@@ -35,6 +27,10 @@
</head>
<body class="w-full h-full" hx-ext="response-targets">
{{ block "_menu" . }}
<!-- Default app menu... -->
{{ end }}
{{ block "body" . }}
<!-- Default app body... -->
{{ end }}