Render executes and renders a template for echo.
(w io.Writer, name string, data any, c echo.Context)
| 104 | |
| 105 | // Render executes and renders a template for echo. |
| 106 | func (t *tplRenderer) Render(w io.Writer, name string, data any, c echo.Context) error { |
| 107 | return t.templates.ExecuteTemplate(w, name, tplData{ |
| 108 | SiteName: t.SiteName, |
| 109 | RootURL: t.RootURL, |
| 110 | LogoURL: t.LogoURL, |
| 111 | FaviconURL: t.FaviconURL, |
| 112 | AssetVersion: t.AssetVersion, |
| 113 | EnablePublicSubPage: t.EnablePublicSubPage, |
| 114 | EnablePublicArchive: t.EnablePublicArchive, |
| 115 | IndividualTracking: t.IndividualTracking, |
| 116 | Data: data, |
| 117 | L: c.Get("app").(*App).i18n, |
| 118 | }) |
| 119 | } |
| 120 | |
| 121 | // GetPublicLists returns the list of public lists with minimal fields |
| 122 | // required to submit a subscription. |
no outgoing calls
no test coverage detected