From 70031d8971136583647125d967ace7b9c831ed00 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 17 Oct 2024 18:07:11 +0200 Subject: Save User as part of the context --- pages/pages.templ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pages/pages.templ') diff --git a/pages/pages.templ b/pages/pages.templ index d2bfad2..67e2792 100644 --- a/pages/pages.templ +++ b/pages/pages.templ @@ -2,22 +2,22 @@ package pages import "gosten/model" -templ notfound(uri string) { +templ notfound() { @content() { } } -templ index(user string) { +templ index() { @content() { - Logged in with user: {user} + Logged in with user: {getUser(ctx).Name} } } -- cgit v1.2.3-70-g09d2