// 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 "git.thomasvoss.com/euro-cash.eu/i18n" type country struct { Code, Name string } var varietiesLinkStart = `` 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: 43, 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_Var4 string templ_7745c5c3_Var4, 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: 58, Col: 18} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) 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 }) }