MCPcopy
hub / github.com/knadh/listmonk / Render

Method Render

cmd/public.go:106–119  ·  view source on GitHub ↗

Render executes and renders a template for echo.

(w io.Writer, name string, data any, c echo.Context)

Source from the content-addressed store, hash-verified

104
105// Render executes and renders a template for echo.
106func (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.

Callers 15

CampaignArchivesPageMethod · 0.45
CampaignArchivePageMethod · 0.45
ViewCampaignMessageMethod · 0.45
SubscriptionPageMethod · 0.45
SubscriptionPrefsMethod · 0.45
OptinPageMethod · 0.45
SubscriptionFormPageMethod · 0.45
SubscriptionFormMethod · 0.45
LinkRedirectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected