httpsec package and flash helpers
httpsec: security headers (yamase's set as default), Host gate (empty Host rejected; active without login or with configured hosts), SafeNext, CookiePath, SecureCookies. layout: FlashURL/RedirectFlash/ApplyFlash/ WithoutFlash over query parameters, an info kind, AppearanceBack without the flash parameters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d5feb21a1
commit
d6bf6f94d8
8 files changed
+489
-17
No files matched your search
@@ -18,7 +18,7 @@
|
||||
{{template "sidebar" .}}
|
||||
</nav>
|
||||
<main class="col-md-10 col-lg-10 ms-sm-auto px-md-4 py-3">
|
||||
{{if .Flash}}<div class="alert alert-{{if eq .FlashKind "ok"}}success{{else}}danger{{end}}">{{.Flash}}</div>{{end}}
|
||||
{{if .Flash}}<div class="alert alert-{{if eq .FlashKind "ok"}}success{{else if eq .FlashKind "info"}}info{{else}}danger{{end}}">{{.Flash}}</div>{{end}}
|
||||
{{template "content" .}}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user