// Code generated by templ - DO NOT EDIT. // templ: version: v0.2.747 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" import ( "fmt" "strings" "git.thomasvoss.com/euro-cash.eu/i18n" ) type country struct { code, name string } var varietiesLinkStart = `` func makeURL(c country) templ.SafeURL { url := fmt.Sprintf("/coins/designs/%s", strings.ToLower(c.code)) return templ.SafeURL(url) } func CoinsDesigns() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) if templ_7745c5c3_Err == nil { templ_7745c5c3_Err = templ_7745c5c3_BufErr } }() } ctx = templ.InitializeContext(ctx) templ_7745c5c3_Var1 := templ.GetChildren(ctx) if templ_7745c5c3_Var1 == nil { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) p := ctx.Value("printer").(i18n.Printer) countries := []country{ {code: "AD", name: p.T("Andorra")}, {code: "AT", name: p.T("Austria")}, {code: "BE", name: p.T("Belgium")}, {code: "CY", name: p.T("Cyprus")}, {code: "DE", name: p.T("Germany")}, {code: "EE", name: p.T("Estonia")}, {code: "ES", name: p.T("Spain")}, {code: "FI", name: p.T("Finland")}, {code: "FR", name: p.T("France")}, {code: "GR", name: p.T("Greece")}, {code: "HR", name: p.T("Croatia")}, {code: "IE", name: p.T("Ireland")}, {code: "IT", name: p.T("Italy")}, {code: "LT", name: p.T("Lithuania")}, {code: "LU", name: p.T("Luxembourg")}, {code: "LV", name: p.T("Latvia")}, {code: "MC", name: p.T("Monaco")}, {code: "MT", name: p.T("Malta")}, {code: "NL", name: p.T("Netherlands")}, {code: "PT", name: p.T("Portugal")}, {code: "SI", name: p.T("Slovenia")}, {code: "SK", name: p.T("Slovakia")}, {code: "SM", name: p.T("San Marino")}, {code: "VA", name: p.T("Vatican City")}, } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } templ_7745c5c3_Err = navbar().Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Euro Coin Designs")) if templ_7745c5c3_Err != nil { return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs.templ`, Line: 53, Col: 32} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } templ_7745c5c3_Err = templ.Raw(p.T("Here you’ll be able to view all the coin designs for each country in the Eurozone. This section of the site doesn’t include minor varieties such as different mintmarks or errors; those are on the %svarieties%s page.", varietiesLinkStart, linkEnd)).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("


") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } for _, c := range countries { _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(p.T(c.name)) if templ_7745c5c3_Err != nil { return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_designs.templ`, Line: 68, Col: 18} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) }