From 0f3b1051228328718798fe0b40d02fdb72e3481f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 8 Aug 2024 21:32:28 +0200 Subject: Rename some components --- templates/base.templ | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 templates/base.templ (limited to 'templates/base.templ') diff --git a/templates/base.templ b/templates/base.templ new file mode 100644 index 0000000..88a9e77 --- /dev/null +++ b/templates/base.templ @@ -0,0 +1,32 @@ +package templates + +import "git.thomasvoss.com/euro-cash.eu/i18n" + +templ Base(head, body templ.Component) { + {{ p := ctx.Value("printer").(i18n.Printer) }} + + + + + + + Euro Cash + if head != nil { + @head + } + + + if body != nil { + @body + } + + + +} -- cgit v1.2.3